MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / IsSignedIntEnum

Function IsSignedIntEnum

layers/core_checks/cc_spirv.cpp:296–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296static bool IsSignedIntEnum(const VkComponentTypeKHR component_type) {
297 switch (component_type) {
298 case VK_COMPONENT_TYPE_SINT8_KHR:
299 case VK_COMPONENT_TYPE_SINT16_KHR:
300 case VK_COMPONENT_TYPE_SINT32_KHR:
301 case VK_COMPONENT_TYPE_SINT64_KHR:
302 return true;
303 default:
304 return false;
305 }
306}
307
308// Validate SPV_KHR_cooperative_matrix (and SPV_NV_cooperative_matrix) behavior that can't be statically validated in SPIRV-Tools
309// (e.g. due to specialization constant usage).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected