19 lines
436 B
HLSL
19 lines
436 B
HLSL
// XC_BUILTIN_SKYBOX_D3D12_VS
|
|
struct VSOutput {
|
|
float4 position : SV_POSITION;
|
|
float2 ndc : TEXCOORD0;
|
|
};
|
|
|
|
VSOutput MainVS(uint vertexId : SV_VertexID) {
|
|
const float2 positions[3] = {
|
|
float2(-1.0f, -1.0f),
|
|
float2(-1.0f, 3.0f),
|
|
float2( 3.0f, -1.0f)
|
|
};
|
|
|
|
VSOutput output;
|
|
output.position = float4(positions[vertexId], 1.0f, 1.0f);
|
|
output.ndc = positions[vertexId];
|
|
return output;
|
|
}
|