| 34 | } |
| 35 | |
| 36 | inline static void read_bytes(const char8_t* file_name, uint32_t** bytes, uint32_t* length) |
| 37 | { |
| 38 | FILE* f = fopen((const char*)file_name, "rb"); |
| 39 | fseek(f, 0, SEEK_END); |
| 40 | *length = ftell(f); |
| 41 | fseek(f, 0, SEEK_SET); |
| 42 | *bytes = (uint32_t*)malloc(*length); |
| 43 | fread(*bytes, *length, 1, f); |
| 44 | fclose(f); |
| 45 | } |
| 46 | |
| 47 | inline static void read_shader_bytes(const char8_t* virtual_path, uint32_t** bytes, uint32_t* length, ECGPUBackend backend) |
| 48 | { |
no test coverage detected