EvaluateAttributeSnapped
Description
Signature
T EvaluateAttributeSnapped<T>( T x, vector<int, 2> offset) where T : __BuiltinArithmeticType; vector<T, N> EvaluateAttributeSnapped<T, N:int>( vector<T, N> x, vector<int, 2> offset) where T : __BuiltinArithmeticType; matrix<T, N, M> EvaluateAttributeSnapped<T, N:int, M:int>( matrix<T, N, M> x, vector<int, 2> offset) where T : __BuiltinArithmeticType;
Generic Parameters
T: __BuiltinArithmeticType
N : int
M : int
Parameters
x : T
offset : vector<int, 2>
x : vector<T, N>
x : matrix<T, N, M>
Availability and Requirements
Defined for the following targets:
glsl
Available in stages: amplification
, fragment
, compute
, mesh
, miss
, callable
, raygen
, intersection
, anyhit
, closesthit
.
spirv
Available in stages: amplification
, fragment
, compute
, mesh
, miss
, callable
, raygen
, intersection
, anyhit
, closesthit
.
Requires capabilities: SPV_NV_compute_shader_derivatives
, spvMeshShadingEXT
.