Skip to content

[SPIR-V] sizeof(vk::BufferPointer) is not supported #7998

@Dolkar

Description

@Dolkar

Description
See title. This is necessary to support manual indexing through pointer arithmetic when the stored type itself contains a vk::BufferPointer. I don't think there should be any problems with it - afaik the stored address is always expected to be 64-bit.

Steps to Reproduce
https://godbolt.org/z/aTf8r4Wza

Actual Behavior

<source>:8:20: error: invalid application of 'sizeof' to non-numeric type 'vk::BufferPointer<int>'
    intBuf.Get() = sizeof(vk::BufferPointer<int>);

Environment

  • DXC version: trunk
  • Host Operating System: Windows 11

Metadata

Metadata

Assignees

Labels

bugBug, regression, crashspirvWork related to SPIR-V

Type

No type

Projects

Status

New

Status

Triaged

Relationships

None yet

Development

No branches or pull requests

Issue actions