phr00t / FocusEngine

Focus Game Engine. This is Stride/Xenko fast-tracked for Phr00t's Software games. Improvements over the original Focus on Vulkan support, PC platforms, VR, performance & ease. Cherry-picks commits from other forks as needed.
MIT License
97 stars 11 forks source link

Sometimes Vulkan textures don't load #60

Closed phr00t closed 5 years ago

phr00t commented 5 years ago

textures

These black objects should, and most of the time do, have a colorful texture, However, sometimes they just get covered in black.

I suspect it is because the texture for these objects isn't getting loaded fast enough, so the dummyTexture is used in its place sometimes. May need to wait a bit if a dummyTexture is trying to be used, to give time for the real texture to be ready. Or, reload the real texture when it is ready, replacing the dummyTexture.

phr00t commented 5 years ago

Also might be related to a validation problem during shader compilation for this project:

Error: [ UNASSIGNED-CoreValidation-Shader-InconsistentSpirv ] Object: VK_NULL_HANDLE (Type = 0) | SPIR-V module not valid: OpStore Pointer '418[%param_6]'s type does not match Object '421[%421]'s type. OpStore %param_6 %421 ([0] Validation) Exception thrown: 'SharpVulkan.SharpVulkanException' in SharpVulkan.dll

phr00t commented 5 years ago

Fixed with https://github.com/phr00t/xenko/commit/d90b6fea81463ed0516ebcefc371e5cdb76cbd7b