struct PixelShaderInput | |
{ | |
float4 pos : SV_POSITION; | |
float2 tex : TEXCOORD0; | |
float4 color : COLOR0; | |
}; | |
#define ColorRS \ | |
"RootFlags ( ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT |" \ | |
"DENY_DOMAIN_SHADER_ROOT_ACCESS |" \ | |
"DENY_GEOMETRY_SHADER_ROOT_ACCESS |" \ | |
"DENY_HULL_SHADER_ROOT_ACCESS )," \ | |
"RootConstants(num32BitConstants=32, b0)" | |
[RootSignature(ColorRS)] | |
float4 main(PixelShaderInput input) : SV_TARGET0 | |
{ | |
return input.color; | |
} |