Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
abs
all
any
cos
ddx
ddy
dot
dst
exp
fma
lit
log
mad
max
min
mul
pow
rcp
sin
tan
Expand Minimize

GetRenderTargetSamplePosition

Gets the sampling position (x,y) for a given sample index.

float<2> GetRenderTargetSamplePosition(

in int<1> Index

);

 

Parameters

ItemDescription

Index

[in] A zero-based sample index.

 

Return Value

The (x,y) position of the given sample.

Remarks

Use this function and GetRenderTargetSampleCount to find out the number and position of the sampling locations for a render target.

Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
Shader Model 4 and higher shader modelsyes
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no

 

See also

Intrinsic Functions (DirectX HLSL)

 

 

Community Additions

ADD
Show:
© 2015 Microsoft