This Vulkan Sample Code introduces depth testing and push constants.
By building on the Rotating Texture sample, the sample illustrates the use of push constants and how to setup various Vulkan objects to enable depth testing.
The source for this sample can be found in samples/spinning_cube in the Mali Vulkan SDK.
Vulkan Sample Code: Spinning Cube
Image may be NSFW.
Clik here to view.
Clik here to view.

The post Vulkan Sample Code: Spinning Cube appeared first on Mali Developer Center.