floooh / voxel-test

Place to experiment with stb_voxel_renderer.h and Oryol
MIT License
5 stars 1 forks source link

Not working on D3D11, Windows10, Intel GPU #2

Closed floooh closed 8 years ago

floooh commented 8 years ago

Nothing rendering on my Windows laptop. Currently suspecting the weird vertex format, or a problem in the vertex shader. Need to investigate with a simple test case, and test on other Windows configs.

floooh commented 8 years ago

According to RenderDoc, all vertices coming out of the vertex shader are identical within one draw call. This would at least explain why nothing is drawn.

floooh commented 8 years ago

Ok, passing ubyte[4] vertex data as DXGI_FORMAT_R8G8B8A8_UINT doesn't unpack to range 255.0 as expected. DXGI_FORMAT_R8G8B8A8_UNORM works as expected though. Bummer...

floooh commented 8 years ago

Fixed by changing the input vertex format to UByte4N, and manually unpacking in the vertex shader.