DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

Uninitialized resource didn't get compile error

Open python3kgae opened this issue 1 year ago • 0 comments

Description

When compile to ps_6_6, following shader didn't get compile/validation error for uninitialized resource.

struct S
{
    Texture2D m_texture;
};

[RootSignature("")]
float4 main() : SV_Target
{
    S s;
    return s.m_texture.Load(int3(0, 0, 0));
}

Steps to Reproduce

https://godbolt.org/z/qKPsKa5eK

Actual Behavior

@dx.op.annotateHandle(i32 216, %dx.types.Handle zeroinitializer, %dx.types.ResourceProperties { i32 2, i32 1033 })

python3kgae avatar Feb 27 '24 20:02 python3kgae