Any SPIR-V binary example?

#1

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!

#2

[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 https://github.com/KhronosGroup/glslang

then you can create your own

#3

Thanks!

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

#4

[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

#5

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