37 #define GPU_VERT_ATTR_MAX_LEN 16
38 #define GPU_VERT_ATTR_MAX_NAMES 6
39 #define GPU_VERT_ATTR_NAMES_BUF_LEN 256
40 #define GPU_VERT_FORMAT_MAX_NAMES 63
42 #define GPU_MAX_SAFE_ATTR_NAME 12
83 "We use uchar as index inside the name buffer "
84 "so GPU_VERT_ATTR_NAMES_BUF_LEN needs to be "
85 "smaller than GPUVertFormat->name_offset and "
86 "GPUVertAttr->names maximum value");
154 #define SIGNED_INT_10_MAX 511
155 #define SIGNED_INT_10_MIN -512
160 assert(min_allowed <= max_allowed);
162 if (
x < min_allowed) {
165 else if (
x > max_allowed) {
208 const bool do_hq_normals)
MINLINE void normal_float_to_short_v3(short r[3], const float n[3])
struct GPUShader GPUShader
void KERNEL_FUNCTION_FULL_NAME() shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int filter, int i, int offset, int sample)
uchar names[GPU_VERT_ATTR_MAX_NAMES]