Export (0) Print
Expand All

sampreg (HLSL)

Bb313988.note(en-us,XNAGameStudio.31).gifNote
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.

Community Additions

ADD
Show:
© 2014 Microsoft