• Home
  • Raw
  • Download

Lines Matching refs:desc

150 	const struct vk_format_description *desc = vk_format_description(format);  in vk_format_get_blocksizebits()  local
152 assert(desc); in vk_format_get_blocksizebits()
153 if (!desc) { in vk_format_get_blocksizebits()
157 return desc->block.bits; in vk_format_get_blocksizebits()
181 const struct vk_format_description *desc = vk_format_description(format); in vk_format_get_blockwidth() local
183 assert(desc); in vk_format_get_blockwidth()
184 if (!desc) { in vk_format_get_blockwidth()
188 return desc->block.width; in vk_format_get_blockwidth()
194 const struct vk_format_description *desc = vk_format_description(format); in vk_format_get_blockheight() local
196 assert(desc); in vk_format_get_blockheight()
197 if (!desc) { in vk_format_get_blockheight()
201 return desc->block.height; in vk_format_get_blockheight()
211 const struct vk_format_description *desc = vk_format_description(format); in vk_format_get_first_non_void_channel() local
215 if (desc->channel[i].type != VK_FORMAT_TYPE_VOID) in vk_format_get_first_non_void_channel()
310 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_compressed() local
312 assert(desc); in vk_format_is_compressed()
313 if (!desc) { in vk_format_is_compressed()
317 switch (desc->layout) { in vk_format_is_compressed()
331 vk_format_has_depth(const struct vk_format_description *desc) in vk_format_has_depth() argument
333 return desc->colorspace == VK_FORMAT_COLORSPACE_ZS && in vk_format_has_depth()
334 desc->swizzle[0] != VK_SWIZZLE_NONE; in vk_format_has_depth()
338 vk_format_has_stencil(const struct vk_format_description *desc) in vk_format_has_stencil() argument
340 return desc->colorspace == VK_FORMAT_COLORSPACE_ZS && in vk_format_has_stencil()
341 desc->swizzle[1] != VK_SWIZZLE_NONE; in vk_format_has_stencil()
347 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_depth_or_stencil() local
349 assert(desc); in vk_format_is_depth_or_stencil()
350 if (!desc) { in vk_format_is_depth_or_stencil()
354 return vk_format_has_depth(desc) || in vk_format_is_depth_or_stencil()
355 vk_format_has_stencil(desc); in vk_format_is_depth_or_stencil()
361 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_depth() local
363 assert(desc); in vk_format_is_depth()
364 if (!desc) { in vk_format_is_depth()
368 return vk_format_has_depth(desc); in vk_format_is_depth()
395 const struct vk_format_description *desc = vk_format_description(format); in vk_format_is_int() local
398 return channel >= 0 && desc->channel[channel].pure_integer; in vk_format_is_int()
412 const struct vk_format_description *desc = vk_format_description(format); in vk_format_get_component_bits() local
426 if (desc->colorspace == VK_FORMAT_COLORSPACE_SRGB) { in vk_format_get_component_bits()
429 desc_colorspace = desc->colorspace; in vk_format_get_component_bits()
436 switch (desc->swizzle[component]) { in vk_format_get_component_bits()
438 return desc->channel[0].size; in vk_format_get_component_bits()
440 return desc->channel[1].size; in vk_format_get_component_bits()
442 return desc->channel[2].size; in vk_format_get_component_bits()
444 return desc->channel[3].size; in vk_format_get_component_bits()