Skip to content

Conversation

@spencer-lunarg
Copy link
Contributor

closes #293

Will now print

struct Data{
   int a;
   int* b;
   int c;
};
[[vk::push_constant]] Data pc;

as

  Push constant blocks: 1

    0:
      spirv id : 16
      name     : pc (Data_std140)
          // size = 20, padded size = 20
          struct Data_std140 {
              int  a; // abs offset =  0, rel offset =  0, size = 4, padded size = 4 UNUSED
              int* b; // abs offset =  8, rel offset =  8, size = 8, padded size = 8 UNUSED
              int  c; // abs offset = 16, rel offset = 16, size = 4, padded size = 4
          } pc;   

@spencer-lunarg spencer-lunarg merged commit decccce into KhronosGroup:main Dec 18, 2024
5 checks passed
@spencer-lunarg spencer-lunarg deleted the spencer-lunarg-pc-pod-pointer branch December 18, 2024 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PhysicalStorageBuffer pointer to POD type size is incorrectly reported, size is only correct if pointer is to a struct.

2 participants