procedural-3d-engine/data
Jakub Kuderski 8982f8f2ec Perform sampling before branching to discard
This two fragment shaders that exhibit undefined behavior. In GLSL,
it is undefined to use implicit or explicit derivatives in
non-uniform control flow [1]. The SPIR-V produced by glslang contained
similar undefined behavior, which results in incorrect codegen
with the amdvlk's LLPC shader compiler, and produces visually
incorrect image.

This PR fixes this issue by hoisting the sampling so that it's
executed before discarding. It's a simple fix and may not be
the optimial way to resolve this issue.

[1]
https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.4.60.pdf
p. 137.
2020-02-13 10:01:50 -05:00
..
models Fixed image usage (validation), code cleanup 2019-02-20 20:03:12 +01:00
shaders Perform sampling before branching to discard 2020-02-13 10:01:50 -05:00
textures Removed remaining dds files 2019-09-06 19:18:15 +02:00
font.fnt Added Vulkan examples sources! 2016-02-16 15:07:25 +01:00
README.md Note on separate asset pack [skip ci] 2017-04-22 12:23:45 +02:00
Robot-Medium-license.txt Nicer font for ImGui overlay 2019-02-20 20:57:38 +01:00
Roboto-Medium.ttf Nicer font for ImGui overlay 2019-02-20 20:57:38 +01:00

Additional asset pack

Newer assets (textures and models) will no longer be added to the repository in order to keep it's size down. Especially HDR assets tend to be much larger than most of the ldr textures and compressing them is problematic due to the multi-platform target of the examples (Not all platforms support compressed HDR texture formats).

So these are provided as a separate download required to run some of the newer examples.

Examples that require assets from this pack will have a note in the header:

/*
* Vulkan Example
*
* Note: Requires the separate asset pack (see data/README.md)
*
*/

Getting the asset pack

Option 1: Run the python script

Run the download_assets.py python script which will download the asset pack and unpacks it into the appropriate folder.

Option 2: Manual download

Download the asset pack from http://vulkan.gpuinfo.org/downloads/vulkan_asset_pack.zip and extract it in the data directory.