Closed dorian-apanel-intel closed 1 year ago
Issue can be seen using Renderdoc:
Descriptor array that is used in global_textures
is not updated in first frame at all.
It is updated later, in section // Handle deferred writes to bindless textures.
It has to be initialized with some default textures or not used in such case.
PR has been merged and ported fix to remaining chapters.
Thanks :)
Partially verified here: https://github.com/PacktPublishing/Mastering-Graphics-Programming-with-Vulkan/pull/26#issuecomment-1510909067
There is and issue with uninitialized descriptor in Chapter 2 code. It causes page fault on Intel HW, but can be detected on NVidia using latest SDK Validation Layers with "GPU Assisted" preset enabled.
Occurs in seventh draw of third compiled pipeline. (first draw that actually spawn fragments) Stripping fragment shader to just:
Also gives the same error.