Lines Matching refs:format

29 #include "util/format/u_format.h"
40 vk_format_aspects(VkFormat format);
43 vk_format_is_color(VkFormat format)
45 return vk_format_aspects(format) == VK_IMAGE_ASPECT_COLOR_BIT;
49 vk_format_is_depth_or_stencil(VkFormat format)
51 const VkImageAspectFlags aspects = vk_format_aspects(format);
56 vk_format_has_depth(VkFormat format)
58 const VkImageAspectFlags aspects = vk_format_aspects(format);
63 vk_format_has_stencil(VkFormat format)
65 const VkImageAspectFlags aspects = vk_format_aspects(format);
70 vk_format_depth_only(VkFormat format)
72 assert(vk_format_has_depth(format));
73 switch (format) {
81 return format;
86 vk_format_stencil_only(VkFormat format)
88 assert(vk_format_has_stencil(format));
96 vk_format_is_int(VkFormat format)
98 return util_format_is_pure_integer(vk_format_to_pipe_format(format));
102 vk_format_is_sint(VkFormat format)
104 return util_format_is_pure_sint(vk_format_to_pipe_format(format));
108 vk_format_is_uint(VkFormat format)
110 return util_format_is_pure_uint(vk_format_to_pipe_format(format));
114 vk_format_is_unorm(VkFormat format)
116 return util_format_is_unorm(vk_format_to_pipe_format(format));
120 vk_format_is_snorm(VkFormat format)
122 return util_format_is_snorm(vk_format_to_pipe_format(format));
126 vk_format_is_float(VkFormat format)
128 return util_format_is_float(vk_format_to_pipe_format(format));
132 vk_format_is_srgb(VkFormat format)
134 return util_format_is_srgb(vk_format_to_pipe_format(format));
138 vk_format_get_blocksize(VkFormat format)
140 return util_format_get_blocksize(vk_format_to_pipe_format(format));
144 vk_format_get_blockwidth(VkFormat format)
146 return util_format_get_blockwidth(vk_format_to_pipe_format(format));
150 vk_format_get_blockheight(VkFormat format)
152 return util_format_get_blockheight(vk_format_to_pipe_format(format));
156 vk_format_is_compressed(VkFormat format)
159 return vk_format_get_blockwidth(format) > 1;
163 vk_format_description(VkFormat format)
165 return util_format_description(vk_format_to_pipe_format(format));
169 vk_format_get_component_bits(VkFormat format, enum util_format_colorspace colorspace,
172 return util_format_get_component_bits(vk_format_to_pipe_format(format),
178 vk_format_get_nr_components(VkFormat format)
180 return util_format_get_nr_components(vk_format_to_pipe_format(format));
184 vk_format_has_alpha(VkFormat format)
186 return util_format_has_alpha(vk_format_to_pipe_format(format));
190 vk_format_get_blocksizebits(VkFormat format)
192 return util_format_get_blocksizebits(vk_format_to_pipe_format(format));
196 vk_format_get_plane_count(VkFormat format)
198 return util_format_get_num_planes(vk_format_to_pipe_format(format));
202 vk_format_get_plane_format(VkFormat format, unsigned plane_id);
205 vk_format_get_aspect_format(VkFormat format, const VkImageAspectFlags aspect);