Implement the GetRenderTargetSamplePosition
HLSL Function
#99103
Labels
backend:DirectX
bot:HLSL
HLSL
HLSL Language Support
metabug
Issue to collect references to a group of similar or related issues.
GetRenderTargetSamplePosition
clang builtin,GetRenderTargetSamplePosition
clang builtin withhlsl_intrinsics.h
GetRenderTargetSamplePosition
toCheckHLSLBuiltinFunctionCall
inSemaChecking.cpp
GetRenderTargetSamplePosition
toEmitHLSLBuiltinExpr
inCGBuiltin.cpp
clang/test/CodeGenHLSL/builtins/GetRenderTargetSamplePosition.hlsl
clang/test/SemaHLSL/BuiltIns/GetRenderTargetSamplePosition-errors.hlsl
int_dx_GetRenderTargetSamplePosition
intrinsic inIntrinsicsDirectX.td
DXILOpMapping
ofint_dx_GetRenderTargetSamplePosition
to76
inDXIL.td
GetRenderTargetSamplePosition.ll
andGetRenderTargetSamplePosition_errors.ll
tests inllvm/test/CodeGen/DirectX/
DirectX
SPIR-V
There is no support for
GetRenderTargetSamplePosition
when targeting SPIR-V.Test Case(s)
Example 1
HLSL:
Gets the sampling position (x,y) for a given sample index.
float<2> GetRenderTargetSamplePosition( in int<1> Index
);
Parameters
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.
See also
Intrinsic Functions (DirectX HLSL)
The text was updated successfully, but these errors were encountered: