"you can't debug print shaders" oh yeah? well check this shit out
that's right, a whole ass view matrix, served directly from the GPU
"you can't debug print shaders" oh yeah? well check this shit out
that's right, a whole ass view matrix, served directly from the GPU
@acegikmo Ah. I thought it was C#, not hlsl. my mistake. Dunno how it being for a shader didn't tip me off to that..., but I also should not have read float DrawDigit as func DrawDigit lol.
In any event, it appears no. binary for literals is not supported https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-appendix-grammar#integer-numbers Tho hex and oct are, so its odd its missing.
@deef @acegikmo I think this may be the first time I've seen a somewhat legit use case for octal other than Unix permissions. (although it would still be less readable than binary)
Interestingly, binary is a late addition in many languages. C# didn't have it until version 7, and C++ until version 14.