G
Size: a a a
G
AI
SS
AI
G
AI
G
SS
SS
G
EK
const std::string shaderSource =
"struct PixelShaderInput\n"
"{\n"
" float3 color : COLOR0;\n"
"};\n\n"
"float4 main(PixelShaderInput input) : SV_TARGET\n"
"{\n"
" return float4(1.0f, 0.0f, 0.0f, 1.0f);\n"
"};";
ComPtr<ID3DBlob> pShaderCode = NULL;
ComPtr<ID3DBlob> errorBlob = NULL;
HRESULT hr = D3DCompile(
shaderSource.c_str(),
shaderSource.length(),
NULL,
NULL,
NULL,
"main",
"ps_5_0",
NULL,
NULL,
&pShaderCode,
&errorBlob);
EK
G
EK
G
EK
G
EK