diff options
Diffstat (limited to 'src/renderer/render.h')
-rw-r--r-- | src/renderer/render.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/renderer/render.h b/src/renderer/render.h index 12c0ce4..35e2899 100644 --- a/src/renderer/render.h +++ b/src/renderer/render.h @@ -10,6 +10,7 @@ */ #pragma once +#include "file.h" #include "ral_types.h" #include "render_types.h" @@ -64,6 +65,16 @@ texture_data texture_data_load(const char* path, bool invert_y); */ texture_handle texture_data_upload(texture_data data, bool free_on_upload); +/** @brief load all of the texture for a PBR material and returns an unnamed material */ +material pbr_material_load( + char* albedo_path, + char* normal_path, + bool metal_roughness_combined, + char* metallic_path, + char* roughness_map, + char* ao_map +); + buffer_handle buffer_create(const char* debug_name, u64 size); bool buffer_destroy(buffer_handle buffer); sampler_handle sampler_create(); |