Skip to content

[SPIR-V] Compile and generate reflection information for shader in a single command. #4496

@wookie41

Description

@wookie41

Hello.

I've been trying to get dxc to compile to SPIRV, stripping reflection infro from the shader and generate reflection info for SPIRV-reflect using a single command like this:

dxc -Qstrip_reflect -spirv -fspv-reflect -fspv-target-env=vulkan1.3 -HV 2021 -T ps_6_7 -Fre reflect/base.frag.ref -Fo bin/base.frag.spv base.frag.hlsl

But instead of two files - one .ref and .spv, I only get the .spv one, with (what it looks like) reflection info in it, as SPIRV-Reflect is able to read the reflection info from it.
I've been trying to do it according to the description in this issue, but wasn't able to and this issue was closed, as the OP was using the SDK and I have to use the commandline.

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    spirvWork related to SPIR-V

    Type

    No type

    Projects

    Status

    Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions