Skip to content

[SPIR-V] Compiler SIGSEGV when trying to write bitfield through vk::BufferPointer #8402

Closed

Description

@vntec

Description
When writing to a bitfield struct member through a vk::BufferPointer, the compilation fails with a segfault.

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

struct Foo {
   uint a : 16;
   uint b : 16;
};

[[vk::push_constant]]
struct Pc {
    vk::BufferPointer<Foo> ptr;
} pc;


[numthreads(1, 1, 1)]
void main() {
    pc.ptr.Get().a = 123;
}

Actual Behavior
Program terminated with signal: SIGSEGV
Compiler returned: 139

Environment

  • DXC trunk

Activity

  1. added
    bug
    spirv
    needs-triage
    on Apr 23, 2026
  2. added a commit that references this issue on Sep 10, 2026
    56d52e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds-triagespirv

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions