Skip to content

When is a block not a block?#83

Description

@ktmattson-alion

I was writing up an issue for OpForwardPointer... but you literally fixed it in that period 馃
It's taken me a while to get my head around my question, so maybe this one's been resolved also 馃槃

So, this is more of a use-question:
If you are using EXT_buffer_reference, reference-bound buffers are decorated as Block type. If the block is used, there is a pointer declared for that type. So, if this library were intended to map these types, it would seem like the place to do it is in populate_one_ty when Pointer types are captured: see if the pointer is to a Block decorated type with PhysicalStorageBuffer as the storage class.

Ok, but I can argue to myself that Block types are not Descriptors (because they aren't) or any of the other Variable types. Should there be a Variable::Block variant?

I need this feature, so I'm going to try to work it out, but I'd rather not trip up any of the overall design if this is something you think this lib needs also. So, I'd love to hear what you think of this.

I titled this issue so that it was clear this is more of a "discuss" issue, but also because I wanted to make sure that Block decorated types which have pointers to them only occur when you're using reference buffers.

Thanks for your hard work on this useful project!

Edit: I have since answered my own silly question, as it's Block types with PhysicalStorageBuffer storage classes that exactly describe what's being captured here, although there may be other possible configurations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions