hi,
when compiling:
struct PS_INPUT {
float4 RasterPos : SV_Position;
float2 Coord : TEXCOORD0;
};
struct PS_OUTPUT {
float4 Color0 : SV_Target0;
};
SamplerState SMapColor;
Texture2D TMapColor;
cbuffer ConstBuf {
const float2 TexSizeU;
const float2 TexSizeV;
const float v0;
const float v1;
};
PS_OUTPUT main(const PS_INPUT v)
{
PS_OUTPUT Output = { float4(0,0,0,0) };
float2 Corners[4] = {
+TexSizeU,
-TexSizeU,
+TexSizeV,
-TexSizeV
};
for (int i=0; i<4; i++) {
float2 Tc = v.Coord + Corners[i];
float4 CornerColor = TMapColor.SampleLevel(SMapColor, Tc, 0);
Output.Color0 += CornerColor;
}
return Output;
}
the compiler crashes when running spirvtools.
in function spvtools::opt::CopyPropagateArrays::BuildMemoryObjectFromCompositeConstruct()
hi,
when compiling:
the compiler crashes when running spirvtools.
in function
spvtools::opt::CopyPropagateArrays::BuildMemoryObjectFromCompositeConstruct()