Martin Krošlák

Results 11 comments of Martin Krošlák

Hello, I just did a little bit of searching and, I may be wrong, but I think C/C++ `frexp()` is defined to return ranges **(-1;-0.5]** & **[0.5; 1)**. Here are...

You're right that validation error doesn't quite match what is in spec. For completeness, this is the error: > VUID-vkCmdSetLineWidth-None-00787(ERROR / SPEC): msgNum: 0 - vkCmdSetLineWidth called but pipeline was...

Not necessarily. In order to keep cost of pipeline changes low, it makes sense for engine to keep settings consistent across pipelines, even if this setting might not play a...

@LPGhatguy Yes, spec guarantees that errors are negative and successes are positive (or 0 in case of VK_SUCCESS). @MaikKlein I'm leaning more towards the Result version. In your example, consuming...

As mentioned on discord, one possible solution would be to use [SPV_EXT_demote_to_helper_invocation](https://github.com/KhronosGroup/SPIRV-Registry/blob/master/extensions/EXT/SPV_EXT_demote_to_helper_invocation.asciidoc) if supported. It would also require checking support and enabling [VK_EXT_shader_demote_to_helper_invocation](https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VK_EXT_shader_demote_to_helper_invocation.html) in Vulkan. I'm not sure whether there...

It will still be a few days until I fully catch up with mojoshader and fna3d development after summer madness. I will try to build some test shaders when I...

I've been experimenting with those arrays, but nothing obviously wrong comes to mind. Test shaders I used were compiled with `fxc.exe /nologo /T ps_3_0 /O3 "hlsl\array-1-global.hlsl" /Fo "fxb\array-1-global.psa" /Fc "fxb\array-1-global.psh"`....

Ah, right, you said that neither of them works. In any case, those shaders I posted compile into what looks like perfectly normal binary. Unfortunately, `fxc` replaced array access in...

I found some minor difference between SPIR-V output of glslangValidator and mojoshader. While mojoshader uses initializer operand of `OpVariable` instruction to set constant data, glslangValidator emits separate `OpStore` instruction in...

@kg, have you tried those changes to see if they help with the problem?