[WIP] Continue working on pipeline
This commit is contained in:
1 parent
f8eb98ddf4
commit
daed76f02f
28 files changed
+467
-2156
No files matched your search
@@ -9,18 +9,15 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
#ifndef TEXTURE_H
|
||||
#define TEXTURE_H
|
||||
|
||||
#include "utilities/file_utils.h"
|
||||
#include "utilities/commons.h"
|
||||
#include "graphics_context.h"
|
||||
|
||||
#include "vulkan/vulkan_core.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "graphics_context.h"
|
||||
#include "utilities/commons.h"
|
||||
#include "utilities/file_utils.h"
|
||||
#include "vulkan/vulkan_core.h"
|
||||
|
||||
#define IMAGE_FORMAT VK_FORMAT_B8G8R8A8_SRGB;
|
||||
|
||||
@@ -40,7 +37,8 @@ rse_err_t init_vulkan_images(struct graphics_context_t* context);
|
||||
* @param texture_id Texture ID will be set up here
|
||||
* @return rse_err_t RSE_ERROR_NO_ERROR on success
|
||||
*/
|
||||
rse_err_t load_texture_from_bitmat(struct graphics_context_t* context, const unsigned char* pixel_buffer, int width, int height, uint16_t* texture_id, VkFormat color_format);
|
||||
rse_err_t load_texture_from_bitmat(struct graphics_context_t* context, const unsigned char* pixel_buffer, int width,
|
||||
int height, uint16_t* texture_id, VkFormat color_format);
|
||||
|
||||
/**
|
||||
* @brief Loads image from file, for later to be used as a texture
|
||||
@@ -85,4 +83,6 @@ void destroy_color_resource(struct graphics_context_t* context);
|
||||
rse_err_t create_depth_resources(struct graphics_context_t* context);
|
||||
void destroy_depth_resource(struct graphics_context_t* context);
|
||||
|
||||
rse_err_t create_sampler(struct graphics_context_t* context, VkSampler sampler);
|
||||
|
||||
#endif /* TEXTURE_H */
|
||||
Reference in new issue
Block a user