Skip to content

Crash when creating a ConstantBuffer with a Struct type #26

@TIMONz1535

Description

@TIMONz1535

I'm creating a Compute Shader on a DX12. I made a NewStruct in Structs tab

Image

then I create a ConstantBuffer in the shader - Resources, Buffer, CBV with a Type Struct of my struct.

Image

When I open the Gigi Viewer, it has a 50% chance of crashing.

The program also generates invalid shader code without a struct declaration and incomplete "Struct_" name.

// Unnamed technique, shader NewShader


Texture2D<float4> tex : register(t0);
ConstantBuffer<Struct_> NewBuffer : register(b0);

#line 2

Minimal sample
cbv_crash.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions