| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
#pragma once |
| 9 |
|
| 10 |
#include <stdbool.h> |
| 11 |
#include <stdint.h> |
| 12 |
#include "util/format/u_formats.h" |
| 13 |
#include "nir.h" |
| 14 |
|
| 15 |
#ifdef __cplusplus |
| 16 |
extern "C" { |
| 17 |
#endif |
| 18 |
|
| 19 |
#define KK_MAX_ATTRIBS (32) |
| 20 |
#define KK_MAX_VBUFS (32) |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
struct kk_attribute { |
| 26 |
|
| 27 |
uint32_t divisor; |
| 28 |
|
| 29 |
uint32_t binding; |
| 30 |
|
| 31 |
|
| 32 |
uint8_t format; |
| 33 |
|
| 34 |
unsigned buf : 7; |
| 35 |
bool instanced : 1; |
| 36 |
}; |
| 37 |
|
| 38 |
bool kk_nir_lower_vbo(nir_shader *shader, struct kk_attribute *attribs); |
| 39 |
|
| 40 |
bool kk_vbo_supports_format(enum pipe_format format); |
| 41 |
|
| 42 |
#ifdef __cplusplus |
| 43 |
} |
| 44 |
#endif |