Open
Description
So I don't know if the syntax I'm using is correct because I'm only new, but the point is that slangc is failing the compilation and returning an error value, but not writing anything to stdout or stderr:
[[vk::location(0)]] in int2 inPos;
struct PushConstants {
float point_size;
float padding;
float2 resolution;
};
[shader("vertex")]
void main(uniform PushConstants push_constants, out float4 pos: SV_Position)
{
float2 wnd_position = float2( 1, 1 );
float2 vertex_position = inPos.xy;
float2 screenspace_pos = inPos.xy;
screenspace_pos = wnd_position + vertex_position;
float2 NDC_pos = float2(screenspace_pos.x / 3840 * 2 - 1, screenspace_pos.y / 2160 * 2 - 1);
pos = float4(NDC_pos, 1, 1);
}
And here's the weird part, the bug goes away by deleting different parts of the code, so it's not one particular part of the code that makes it happen. Try commenting out different parts and see.
I'm using the slangc compiler that comes with the Vulkan SDK 1.4.304.1