Any SPIR-V binary example?

Hello!

I’m digging into SPIR-V specs and would loved to have a bin example to introspect.

Where could I find a SPIR-V .bin file to introspect by myself?

Thanks in advance!

[QUOTE=Narann;39710]Hello!

I’m digging into SPIR-V specs and would loved to have a bin example to introspect.

Where could I find a SPIR-V .bin file to introspect by myself?

Thanks in advance![/QUOTE]

grab the glslang compiler GitHub - KhronosGroup/glslang: Khronos-reference front end for GLSL/ESSL, partial front end for HLSL, and a SPIR-V generator.

then you can create your own

Thanks!

I would preferred to have a .bin + it’s “textual disassembly” so you can introspect the .bin knowing what it contains.

[QUOTE=Narann;39712]Thanks!

I would preferred to have a .bin + it’s “textual disassembly” so you can introspect the .bin knowing what it contains.[/QUOTE]

there is a switch for that -H

Oh! Cool! I will try this. :slight_smile: