sampreg (HLSL)
Note
This HLSL attribute is available only when developing for the Xbox 360.
Sets the ranges of pixel sampler and vertex sampler registers used by the compiler.
Syntax
[sampreg(n,m)] |
---|
Parameters
n
Starting vertex sampler register.m
Starting pixel sampler register.
Scope
Applies to functions. The sampreg attribute is ignored on any function except the shader entry point that is currently being compiled. The parameters also apply to any function that is compiled for this entry point, whether the function is inlined or not.
See Also
Concepts
HLSL Attributes (Xbox 360)
Attribute Syntax
Attribute Categories