Closed MoritzBrueckner closed 2 years ago
This was purely an HL problem and wasn't related to any actual graphics implementation things. The HL backend isn't really actively maintained (I don't use it myself), would be great if somebody could jump in.
Describe the bug When passing an RGBA128 texture to a shader on windows-hl/d3d11, the texture format seems to get silently changed to R8_UNORM according to both RenderDoc and Intel GPA. This creates unexpected results in the shader.
I noticed that there are some places in the Kinc code where the usage of formats seemingly gets restricted (like here), however I'm not sure if the linked code is actually run in my case. Because of that, https://github.com/Kode/Kinc/issues/623 might be a related issue. I'm not sure if it is possible at all to use RGBA128 textures on all targets, but if not this is something that needs to be documented somewhere.
To Reproduce
Expected behavior The texture format should be
DXGI_FORMAT_R32G32B32A32_FLOAT
instead ofDXGI_FORMAT_R8_UNORM
so that you can directly sample vec4 values in the shader.Screenshots
Execution Environment: