Vulkan
Vulkan copied to clipboard
Examples and demos for the new Vulkan API
In `buildComputeCommandBuffer()` the `vkCmdDispatch()` call is sandwiched between two `vkCmdPipelineBarrier()` calls with alternating source and destination AccessMask, QueueFamilyIndex and StageMasks for the indirectCommandsBuffer. While this is meant for acquire/release operation,...
This is a set of example-specific fixes: 1. Set MoltenVK configuration for descriptorindexing (enable Metal argument buffers for descriptor indexing on macOS, not available on iOS), oit (use `VK_IMAGE_TILING_LINEAR` vs....
Change Texture2D textureColorMap : register(t1); SamplerState samplerColorMap : register(s1); To Texture2D textureColorMap : register(t0, space1); SamplerState samplerColorMap : register(s0, space1);
Hey there, in the: https://github.com/SaschaWillems/Vulkan/blob/master/data/shaders/glsl/distancefieldfonts/sdf.frag There is the line: `rgb += mix(vec3(alpha), ubo.outlineColor.rgb, alpha);` I am wondering whether you could document that line. Somehow I keep wondering whether that code...
To improve realism and to avoid peter panning, the offscreen pass should use `VK_CULL_MODE_FRONT_BIT`. Without that, one of the walls of the box does not cast proper shadows in the...
04-11 12:24:02.157 10566-10587/de.saschawillems.vulkanPipelines E/vulkan: dequeueBuffer returned unrecognized buffer 04-11 12:24:02.158 10566-10587/de.saschawillems.vulkanPipelines E/vulkanExample: Fatal : VkResult is " ERROR_OUT_OF_DATE_KHR " in D:/xxx/Vulkan_AS/pipelines/jni/../../pipelines/../code/base/vulkanexamplebase.cpp at line 556 04-11 12:24:02.159 10566-10587/de.saschawillems.vulkanPipelines E/Surface: queueBuffer: error...
The current synchronization involves a ```vkQueueWaitIdle``` after frame submission. While this makes things a lot easier, it is not optimal and shows a bad practice. The samples should be updated...
I found a part of redundant code and delete it in 'computecloth'.The input buffer does not need to transfer data from staging. By the way, compute shader not copies some...
Would be possible to add multiple swap chain example ( for desktop ) platforms? Thank you
The code allocates and actually records to two commandBuffers for the compute pipeline, but actually only one of them ever gets used since _readSet_, the controlling variable of this ping-pong...