Firstly I have an AMD card.
1. I am not supposed to use in/out qualifiers with structs ? Does that mean if I am going to share things between stages
they should be either interfaces or just global variables using in/out qualifiers ?
2. In HLSL side, I am using semantics like TEXCOORD4_centroid , and I was planning to use something like
layout(location=4) to match TEXCOORDs. And at the same time I want to specify that that variable should be sampled by
centroid sampling method
How can I achieve this ?
3. Regarding mixing `in centroid` with an `out struct` ,I was trying the code above in a vertex shader so that I want to output that struct and that is working like that.
On the other hand the compiler doesn`t allow me to use centroid with out in a vertex shader but it just allows `centroid in` in a vertex shader.
Show differencesHistory of post edits
#1akhin
Posted 30 March 2012 - 07:32 AM
Firstly I have an AMD card.
1. I am not supposed to use in/out qualifiers with structs ? Does that mean if I am going to share things between stages
they should be either interfaces or just global variables using in/out qualifiers ?
2. In HLSL side, I am using semantics like TEXCOORD4_centroid , and I was planning to use something like
layout(location=4) to match TEXCOORDs. And at the same time I want to specify that that variable should be sampled by
centroid sampling method
How can I achieve this ?
3. Regarding mixing `in centroid` with an `out struct` ,I was trying the code above in a vertex shader so that I want to output that struct and that is working like that.
On the other hand the compiler doesn`t allow me to use centroid with out in a vertex shader but it just allow `centroid in` in a vertex shader.
1. I am not supposed to use in/out qualifiers with structs ? Does that mean if I am going to share things between stages
they should be either interfaces or just global variables using in/out qualifiers ?
2. In HLSL side, I am using semantics like TEXCOORD4_centroid , and I was planning to use something like
layout(location=4) to match TEXCOORDs. And at the same time I want to specify that that variable should be sampled by
centroid sampling method
How can I achieve this ?
3. Regarding mixing `in centroid` with an `out struct` ,I was trying the code above in a vertex shader so that I want to output that struct and that is working like that.
On the other hand the compiler doesn`t allow me to use centroid with out in a vertex shader but it just allow `centroid in` in a vertex shader.