You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since Expanded Comparison Sampling implementation (#5560) there have been some additions to the spec (microsoft/hlsl-specs#147). This includes some additional diagnostics, tests, and a feature capability bit.
Describe the solution you'd like
Details of all the below can be found in the spec.
*** Feature Bit ***
ExtendedComparisonSampling is a new feature info flag added to SFI0.
It's value is 0x80000000.
It indicates that the shadermakes use of SampleCmpBias or SampleCmpGrad.
This indicates to the runtime that that the shader requires the presence of
the corresponding capability bit.
Testing
SampleCmpBias in an entry point of an unsupported shader stage should produce an appropriate error.
SampleCmpBias, SampleCmpGrad, and the new CalculateLevelOfDetail* overloads in an unsupported shader model should produce an appropriate error.
Violating the bias range limits tested by SampleBiasFail in ValidationTest with dx.op.sampleCmpBias should produce a validation error
Using invalid Test that DXIL validation of allowed resource types must be performed for dx.op.sampleCmpBias and dx.op.sampleCmpGrad:
Instr.SampleCompType - texture resources are declared with types that are
sampleable in the current environment.
Instr.SamplerModeForSampleC - sampler resource used by SampleCmpBias and SampleCmpGrad are of type SamplerComparisonState.
Instr.ResourceKindForCalcLOD - texture resources used by
CalculateLevelOfDetail* are among the valid texture objects.
Instr.ResourceKindForSample - texture resources used by SampleCmpBias and SampleCmpGrad are among the valid texture objects.
Instr.ResourceClassForSamplerGather - texture resources used by SampleCmpBias and SampleCmpGrad must be SRVs.
The text was updated successfully, but these errors were encountered:
Since Expanded Comparison Sampling implementation (#5560) there have been some additions to the spec (microsoft/hlsl-specs#147). This includes some additional diagnostics, tests, and a feature capability bit.
Describe the solution you'd like
Details of all the below can be found in the spec.
*** Feature Bit ***
ExtendedComparisonSampling
is a new feature info flag added to SFI0.It's value is 0x80000000.
It indicates that the shadermakes use of
SampleCmpBias
orSampleCmpGrad
.This indicates to the runtime that that the shader requires the presence of
the corresponding capability bit.
Testing
SampleCmpBias
in an entry point of an unsupported shader stage should produce an appropriate error.SampleCmpBias
,SampleCmpGrad
, and the newCalculateLevelOfDetail*
overloads in an unsupported shader model should produce an appropriate error.Violating the bias range limits tested by
SampleBiasFail
in ValidationTest withdx.op.sampleCmpBias
should produce a validation errorUsing invalid Test that DXIL validation of allowed resource types must be performed for
dx.op.sampleCmpBias
anddx.op.sampleCmpGrad
:Instr.SampleCompType - texture resources are declared with types that are
sampleable in the current environment.
Instr.SamplerModeForSampleC - sampler resource used by
SampleCmpBias
andSampleCmpGrad
are of typeSamplerComparisonState
.Instr.ResourceKindForCalcLOD - texture resources used by
CalculateLevelOfDetail* are among the valid texture objects.
Instr.ResourceKindForSample - texture resources used by
SampleCmpBias
andSampleCmpGrad
are among the valid texture objects.Instr.ResourceClassForSamplerGather - texture resources used by
SampleCmpBias
andSampleCmpGrad
must be SRVs.The text was updated successfully, but these errors were encountered: