mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-12 21:20:06 +00:00
cf43e66125
Fix for two defects as follows: - The IO mapping traverser was not setting inVisit, and would skip some AST nodes. Depending on the order of nodes, this could have prevented the binding from showing up in the generated SPIR-V. - If a uniform array was flattened, each of the flattened scalars from the array is still a (now-scalar) uniform. It was being converted to a temporary.
16 lines
272 B
GLSL
16 lines
272 B
GLSL
|
|
SamplerState g_tSamp : register(s0);
|
|
|
|
Texture2D g_tScene[2] : register(t0);
|
|
|
|
struct PS_OUTPUT
|
|
{
|
|
float4 Color : SV_Target0;
|
|
};
|
|
|
|
void main(out PS_OUTPUT psout)
|
|
{
|
|
psout.Color = g_tScene[0].Sample(g_tSamp, 0.3) +
|
|
g_tScene[1].Sample(g_tSamp, 0.3);
|
|
}
|