Skip to content

Commit

Permalink
Shader Debug HLSL shader remove the SM6.8 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorro666 committed Oct 27, 2024
1 parent 0b5527d commit 3129d1d
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions renderdoc/data/hlsl/shaderdebug.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -701,60 +701,6 @@ float4 DoFloatOpcode(float4 uv)
}
}
#endif // #if __SHADER_TARGET_MINOR >= 7
#if __SHADER_TARGET_MINOR >= 8
else if(opcode == DEBUG_SAMPLE_TEX_SAMPLE_CMP_GRAD) // SM6.8
{
switch(debugSampleTexDim)
{
default:
case DEBUG_SAMPLE_TEX1D:
{
switch(debugSampleRetType)
{
case DEBUG_SAMPLE_UNORM:
return t1D_unorm.SampleCmpGrad(s, uv.xy, compare, ddx_.x, ddy_.x, offsets.x);
case DEBUG_SAMPLE_SNORM:
return t1D_snorm.SampleCmpGrad(s, uv.xy, compare, ddx_.x, ddy_.x, offsets.x);
default: return t1D_float.SampleCmpGrad(s, uv.xy, compare, ddx_.x, ddy_.x, offsets.x);
}
}
case DEBUG_SAMPLE_TEX2D:
{
switch(debugSampleRetType)
{
case DEBUG_SAMPLE_UNORM:
return t2D_unorm.SampleCmpGrad(s, uv.xyz, compare, ddx_.xy, ddy_.xy, offsets.xy);
case DEBUG_SAMPLE_SNORM:
return t2D_snorm.SampleCmpGrad(s, uv.xyz, compare, ddx_.xy, ddy_.xy, offsets.xy);
default: return t2D_float.SampleCmpGrad(s, uv.xyz, compare, ddx_.xy, ddy_.xy, offsets.xy);
}
}
case DEBUG_SAMPLE_TEX3D:
{
switch(debugSampleRetType)
{
case DEBUG_SAMPLE_UNORM:
return t3D_unorm.SampleCmpGrad(s, uv.xyz, compare, ddx_.xyz, ddy_.xyz, offsets.xyz);
case DEBUG_SAMPLE_SNORM:
return t3D_snorm.SampleCmpGrad(s, uv.xyz, compare, ddx_.xyz, ddy_.xyz, offsets.xyz);
default:
return t3D_float.SampleCmpGrad(s, uv.xyz, compare, ddx_.xyz, ddy_.xyz, offsets.xyz);
}
}
case DEBUG_SAMPLE_TEXCUBE:
{
switch(debugSampleRetType)
{
case DEBUG_SAMPLE_UNORM:
return tCube_unorm.SampleCmpGrad(s, uv, compare, ddx_.xyz, ddy_.xyz);
case DEBUG_SAMPLE_SNORM:
return tCube_snorm.SampleCmpGrad(s, uv, compare, ddx_.xyz, ddy_.xyz);
default: return tCube_float.SampleCmpGrad(s, uv, compare, ddx_.xyz, ddy_.xyz);
}
}
}
}
#endif // #if __SHADER_TARGET_MINOR >= 8
#endif // #if __SHADER_TARGET_MAJOR >= 6
else
{
Expand Down

0 comments on commit 3129d1d

Please sign in to comment.