Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. layout(push_constant) uniform Instance {
  2. mat4 VP;
  3. vec3 posCam;
  4. float radius;
  5. float curvature;
  6. } u_instance;
  7.  
  8. uint32_t offset = 0;
  9. uint32_t size = 21 *sizeof(float);
  10. vk::PushConstantRange range {vk::ShaderStageFlagBits::eGeometry,offset,size};
  11.  
  12. Push constant range covering variable starting at offset 0 not accessible from stage VK_SHADER_STAGE_GEOMETRY_BIT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement