xash3d-fwgs/ref/vk/stringview.h
Ivan Avdeev 3cbc11a8f0 vk: rt: optimize hires skybox loading
- Do not load skybox at all if there are no SURF_DRAWSKY, #706, #579
- Do not reload the same skybox, #706

Also refactor skybox loading a bit. Prepare for KTX2 skyboxes.
2023-12-14 10:33:26 -05:00

14 lines
316 B
C

#pragma once
typedef struct {
const char *s;
int len;
} const_string_view_t;
const_string_view_t svFromNullTerminated( const char *s );
int svCmp(const_string_view_t sv, const char* s);
void svStrncpy(const_string_view_t sv, char *dest, int size);
const_string_view_t svStripExtension(const_string_view_t sv);