Reputation: 14308
In my GLSL code in my vertex shader I have:
layout(location = 2) out flat uint out_uniform_index;
layout(location = 3) out vec2 out_pos_in_chamfer_box;
layout(location = 4) out flat vec2 out_chamfer_box_size;
In GLSL I think integers are flat automatically, but for floating point types you must label it specifically. I'm trying to use Slang and I don't know how to do this as it doesn't seem to have a "flat" keyword qualifier. Since Slang's syntax is related to HLSL I'm wondering if HLSL also doesn't have this qualifier. How do I do this in Slang?
Upvotes: 0
Views: 21