Add option to reflect all block members, inactive or active.
* The stages mask is more fine-grained, and each variable or block's mask indicates which stages it's active in.
This commit is contained in:
19
Test/reflection.linked.vert
Normal file
19
Test/reflection.linked.vert
Normal file
@@ -0,0 +1,19 @@
|
||||
#version 440 core
|
||||
|
||||
layout(binding = 0, std140) uniform ubo_block {
|
||||
float unused_uniform;
|
||||
float shared_uniform;
|
||||
float vsonly_uniform;
|
||||
float fsonly_uniform;
|
||||
} ubo;
|
||||
|
||||
in float vertin;
|
||||
|
||||
out float vertout;
|
||||
|
||||
void main()
|
||||
{
|
||||
vertout = vertin;
|
||||
vertout += ubo.shared_uniform;
|
||||
vertout += ubo.vsonly_uniform;
|
||||
}
|
||||
Reference in New Issue
Block a user