Lines Matching refs:desc

148 	const struct vk_format_description *desc = vk_format_description(format);  in vk_format_get_blocksizebits()  local
150 assert(desc); in vk_format_get_blocksizebits()
151 if (!desc) { in vk_format_get_blocksizebits()
155 return desc->block.bits; in vk_format_get_blocksizebits()
179 const struct vk_format_description *desc = vk_format_description(format); in vk_format_get_blockwidth() local
181 assert(desc); in vk_format_get_blockwidth()
182 if (!desc) { in vk_format_get_blockwidth()
186 return desc->block.width; in vk_format_get_blockwidth()
192 const struct vk_format_description *desc = vk_format_description(format); in vk_format_get_blockheight() local
194 assert(desc); in vk_format_get_blockheight()
195 if (!desc) { in vk_format_get_blockheight()
199 return desc->block.height; in vk_format_get_blockheight()
209 const struct vk_format_description *desc = vk_format_description(format); in vk_format_get_first_non_void_channel() local
213 if (desc->channel[i].type != VK_FORMAT_TYPE_VOID) in vk_format_get_first_non_void_channel()
308 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_compressed() local
310 assert(desc); in vk_format_is_compressed()
311 if (!desc) { in vk_format_is_compressed()
315 switch (desc->layout) { in vk_format_is_compressed()
329 vk_format_has_depth(const struct vk_format_description *desc) in vk_format_has_depth() argument
331 return desc->colorspace == VK_FORMAT_COLORSPACE_ZS && in vk_format_has_depth()
332 desc->swizzle[0] != VK_SWIZZLE_NONE; in vk_format_has_depth()
336 vk_format_has_stencil(const struct vk_format_description *desc) in vk_format_has_stencil() argument
338 return desc->colorspace == VK_FORMAT_COLORSPACE_ZS && in vk_format_has_stencil()
339 desc->swizzle[1] != VK_SWIZZLE_NONE; in vk_format_has_stencil()
345 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_depth_or_stencil() local
347 assert(desc); in vk_format_is_depth_or_stencil()
348 if (!desc) { in vk_format_is_depth_or_stencil()
352 return vk_format_has_depth(desc) || in vk_format_is_depth_or_stencil()
353 vk_format_has_stencil(desc); in vk_format_is_depth_or_stencil()
359 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_depth() local
361 assert(desc); in vk_format_is_depth()
362 if (!desc) { in vk_format_is_depth()
366 return vk_format_has_depth(desc); in vk_format_is_depth()
372 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_stencil() local
374 assert(desc); in vk_format_is_stencil()
375 if (!desc) { in vk_format_is_stencil()
379 return vk_format_has_stencil(desc); in vk_format_is_stencil()
406 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_int() local
409 return channel >= 0 && desc->channel[channel].pure_integer; in vk_format_is_int()
415 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_srgb() local
416 return desc->colorspace == VK_FORMAT_COLORSPACE_SRGB; in vk_format_is_srgb()
430 const struct vk_format_description *desc = vk_format_description(format); in vk_format_get_component_bits() local
444 if (desc->colorspace == VK_FORMAT_COLORSPACE_SRGB) { in vk_format_get_component_bits()
447 desc_colorspace = desc->colorspace; in vk_format_get_component_bits()
454 switch (desc->swizzle[component]) { in vk_format_get_component_bits()
456 return desc->channel[0].size; in vk_format_get_component_bits()
458 return desc->channel[1].size; in vk_format_get_component_bits()
460 return desc->channel[2].size; in vk_format_get_component_bits()
462 return desc->channel[3].size; in vk_format_get_component_bits()