_Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.SampleGrad
Description
Signature
/// Requires Capability Set 1: T _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.SampleGrad( vector<float, isArray+Shape.dimensions> location, vector<float, Shape.dimensions> gradX, vector<float, Shape.dimensions> gradY) where Shape : __ITextureShape where access == 0 where isCombined == 1; /// Requires Capability Set 1: T _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.SampleGrad( vector<float, isArray+Shape.dimensions> location, vector<float, Shape.dimensions> gradX, vector<float, Shape.dimensions> gradY, vector<int, Shape.dimensions> offset) where Shape : __ITextureShape where access == 0 where isCombined == 1; /// Requires Capability Set 2: T _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.SampleGrad( vector<float, isArray+Shape.dimensions> location, vector<float, Shape.dimensions> gradX, vector<float, Shape.dimensions> gradY, vector<int, Shape.dimensions> offset, float lodClamp) where Shape : __ITextureShape where access == 0 where isCombined == 1; /// Requires Capability Set 1: T _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.SampleGrad( SamplerState s, vector<float, isArray+Shape.dimensions> location, vector<float, Shape.dimensions> gradX, vector<float, Shape.dimensions> gradY) where Shape : __ITextureShape where access == 0 where isCombined == 0; /// Requires Capability Set 1: T _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.SampleGrad( SamplerState s, vector<float, isArray+Shape.dimensions> location, vector<float, Shape.dimensions> gradX, vector<float, Shape.dimensions> gradY, vector<int, Shape.dimensions> offset) where Shape : __ITextureShape where access == 0 where isCombined == 0; /// Requires Capability Set 3: T _Texture<T, Shape, isArray, isMS, sampleCount, access, isShadow, isCombined, format>.SampleGrad( SamplerState s, vector<float, isArray+Shape.dimensions> location, vector<float, Shape.dimensions> gradX, vector<float, Shape.dimensions> gradY, vector<int, Shape.dimensions> offset, float lodClamp) where Shape : __ITextureShape where access == 0 where isCombined == 0;
Parameters
location : vector<float, isArray + Shape.dimensions>
gradX : vector<float, Shape.dimensions>
gradY : vector<float, Shape.dimensions>
offset : vector<int, Shape.dimensions>
lodClamp : float
s : SamplerState
Availability and Requirements
Capability Set 1
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
metal
Available in all stages.
wgsl
Available in all stages.
spirv
Available in all stages.
Capability Set 2
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
metal
Available in all stages.
spirv
Available in all stages.
Requires capability: spvSparseResidency
.
Capability Set 3
Defined for the following targets:
hlsl
Available in all stages.
glsl
Available in all stages.
cpp
Available in all stages.
metal
Available in all stages.
spirv
Available in all stages.