mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2025-02-27 14:32:42 +00:00
Merge pull request #554 from tomaka/nv-invalid-shader
Use a different panic message for VK_ERROR_INVALID_SHADER_NV
This commit is contained in:
commit
202abee830
@ -101,6 +101,7 @@ pub const SUBOPTIMAL_KHR: u32 = 1000001003;
|
||||
pub const ERROR_OUT_OF_DATE_KHR: u32 = -1000001004i32 as u32;
|
||||
pub const ERROR_INCOMPATIBLE_DISPLAY_KHR: u32 = -1000003001i32 as u32;
|
||||
pub const ERROR_VALIDATION_FAILED_EXT: u32 = -1000011001i32 as u32;
|
||||
pub const ERROR_INVALID_SHADER_NV: u32 = -1000012000i32 as u32;
|
||||
pub const ERROR_OUT_OF_POOL_MEMORY_KHR: u32 = -1000069000i32 as u32;
|
||||
|
||||
pub type StructureType = u32;
|
||||
|
@ -226,6 +226,7 @@ fn check_errors(result: vk::Result) -> Result<Success, Error> {
|
||||
vk::ERROR_INCOMPATIBLE_DISPLAY_KHR => Err(Error::IncompatibleDisplay),
|
||||
vk::ERROR_VALIDATION_FAILED_EXT => Err(Error::ValidationFailed),
|
||||
vk::ERROR_OUT_OF_POOL_MEMORY_KHR => Err(Error::OutOfPoolMemory),
|
||||
vk::ERROR_INVALID_SHADER_NV => panic!("Vulkan function returned VK_ERROR_INVALID_SHADER_NV"),
|
||||
c => unreachable!("Unexpected error code returned by Vulkan: {}", c)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user