#Awful performance in Nsight
8 messages · Page 1 of 1 (latest)
Are you doing frame debugger or gpu trace?
frame debugger
Is it one call that is particularly slow?
yes
Or are they all just slow
that event is copying from the depth texture to a R32r texture
this is the shader:
layout(push_constant, std430) uniform UniformBufferObject
{
uint targetDim;
} ubo;
layout(set = 0, binding = 0) uniform texture2D inImage;
layout(set = 0, binding = 1) uniform sampler g_sampler;
layout(location = 0) out vec4 outcolor;
void main()
{
vec2 texcoord = vec2(gl_FragCoord.x / float(ubo.targetDim), gl_FragCoord.y / float(ubo.targetDim));
outcolor = texture(sampler2D(inImage, g_sampler), texcoord);
}