28 lines
581 B
C
28 lines
581 B
C
#pragma once
|
|
|
|
#include "xash3d_types.h"
|
|
|
|
typedef struct r_vk_material_s {
|
|
int tex_base_color;
|
|
int tex_roughness;
|
|
int tex_metalness;
|
|
int tex_normalmap;
|
|
|
|
vec4_t base_color;
|
|
float roughness;
|
|
float metalness;
|
|
float normal_scale;
|
|
|
|
qboolean set;
|
|
} r_vk_material_t;
|
|
|
|
typedef struct { int index; } r_vk_material_ref_t;
|
|
|
|
// Note: invalidates all previously issued material refs
|
|
// TODO: track "version" in high bits?
|
|
void R_VkMaterialsReload( void );
|
|
|
|
r_vk_material_ref_t R_VkMaterialGetForTexture( int tex_id );
|
|
|
|
const r_vk_material_t* R_VkMaterialGet( r_vk_material_ref_t ref );
|