Function demo_vk::graphics::vulkan::spirv_module
source ยท pub fn spirv_module(
ctx: &VulkanContext,
shader_bytes: &[u8],
) -> Result<ShaderModule>Expand description
Creates a Vulkan shader module from the provided SPIR-V code.
SPIR-V is expected to be a valid array of u32 words. If the provided bytes cannot be reinterpreted as words, this method will return an error.