25#define DECLARE(a, b, c, blender_enum, d, e, f, g, h) blender_enum = int(DataFormat::blender_enum),
27#define GPU_VERTEX_FORMAT_EXPAND(impl) \
28 SNORM_8_8_8_8_(impl) \
31 SNORM_16_16_16_16_(impl) \
33 UNORM_8_8_8_8_(impl) \
36 UNORM_16_16_16_16_(impl) \
41 SINT_16_16_16_16_(impl) \
45 SINT_32_32_32_(impl) \
46 SINT_32_32_32_32_(impl) \
51 UINT_16_16_16_16_(impl) \
55 UINT_32_32_32_(impl) \
56 UINT_32_32_32_32_(impl) \
60 SFLOAT_32_32_32_(impl) \
61 SFLOAT_32_32_32_32_(impl) \
63 SNORM_10_10_10_2_(impl) \
64 UNORM_10_10_10_2_(impl) \
67 SINT_TO_FLT_32_(impl) \
68 SINT_TO_FLT_32_32_(impl) \
69 SINT_TO_FLT_32_32_32_(impl) \
70 SINT_TO_FLT_32_32_32_32_(impl) \
78#define DECLARE(a, b, c, blender_enum, d, e, f, g, h) \
79 blender_enum##_DEPRECATED = int(DataFormat::blender_enum),
82#define GPU_VERTEX_DEPRECATED_FORMAT_EXPAND(impl) \
87 SNORM_16_16_16_(impl) \
92 UNORM_16_16_16_(impl) \
97 SINT_16_16_16_(impl) \
151#ifndef NO_LEGACY_VERT_TYPE
171 "We use uchar as index inside the name buffer "
172 "so GPU_VERT_ATTR_NAMES_BUF_LEN needs to be "
173 "smaller than GPUVertFormat->name_offset and "
174 "GPUVertAttr->names maximum value");
#define BLI_STATIC_ASSERT(a, msg)
constexpr DataFormat to_data_format(TextureFormat format)
uchar names[GPU_VERT_ATTR_MAX_NAMES]
blender::gpu::VertAttrType format