Skip to content

Latest commit

 

History

History
79 lines (39 loc) · 1.88 KB

dx-graphics-hlsl-getrendertargetsampleposition.md

File metadata and controls

79 lines (39 loc) · 1.88 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
GetRenderTargetSamplePosition
Gets the sampling position (x,y) for a given sample index.
07f14d1c-4fe5-4838-acce-d664cdc641e6
GetRenderTargetSamplePosition HLSL
apiref
GetRenderTargetSamplePosition
NA
reference
05/31/2018

GetRenderTargetSamplePosition

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

float<2> GetRenderTargetSamplePosition( in int<1> Index
);

Parameters

Item Description
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 Model Supported
Shader Model 4 and higher shader models yes
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no

See also

Intrinsic Functions (DirectX HLSL)