Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ByteAddressBuffer support #236

Conversation

spencer-lunarg
Copy link
Contributor

prototype for #234

uint32_t uav_counter_id;
struct SpvReflectDescriptorBinding* uav_counter_binding;

SpvReflectTypeDescription* type_description;

uint32_t is_byte_address_buffer;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should find some way to make this a flag so it can be used to identify other concrete types. ByteAddressBuffer is a concrete type on an SRV and there are a few others like it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry this is old (about to replace with new PR)

I created a

typedef enum SpvReflectUserType {
  SPV_REFLECT_USER_TYPE_INVALID = 0,
  SPV_REFLECT_USER_TYPE_CBUFFER,
  SPV_REFLECT_USER_TYPE_TBUFFER,
  SPV_REFLECT_USER_TYPE_APPEND_STRUCTURED_BUFFER,
  ...

so this becomes an enum... basically will be a more general approach, this PR is too single focused to solve one task

@spencer-lunarg
Copy link
Contributor Author

closed for #248

@spencer-lunarg spencer-lunarg deleted the spencer-lunarg-byteAddressBuffer branch January 12, 2024 05:00
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.

2 participants