Add textures
Textures supported
This commit is contained in:
1 parent
4fcda01ba2
commit
548ed57969
11 files changed
+183
-76
No files matched your search
@@ -550,7 +550,7 @@ uint8_t create_sync_objects()
|
||||
}
|
||||
|
||||
|
||||
uint8_t init_vulkan()
|
||||
uint8_t preinit_vulkan()
|
||||
{
|
||||
uint8_t status = VULKAN_ERROR_NO_ERROR;
|
||||
|
||||
@@ -563,25 +563,21 @@ uint8_t init_vulkan()
|
||||
STATUS_CHECK(pick_physical_device());
|
||||
STATUS_CHECK(create_device());
|
||||
STATUS_CHECK(create_memory_allocator());
|
||||
|
||||
STATUS_CHECK(create_pipeline());
|
||||
|
||||
STATUS_CHECK(init_commands());
|
||||
|
||||
STATUS_CHECK(create_buffers());
|
||||
|
||||
|
||||
STATUS_CHECK(init_vulkan_images());
|
||||
|
||||
//FIXME: Images have to be add after vulkan initialization but before creating descriptors.
|
||||
// I have to fix it somehow to be able to add textures from anywhere in the code in some initialization step
|
||||
// at the beginnning.
|
||||
rse_load_texture("../../miotacz_piorunów.png");
|
||||
return status;
|
||||
}
|
||||
|
||||
uint8_t init_vulkan()
|
||||
{
|
||||
uint8_t status = VULKAN_ERROR_NO_ERROR;
|
||||
|
||||
STATUS_CHECK(create_pipeline());
|
||||
STATUS_CHECK(create_descriptors());
|
||||
|
||||
STATUS_CHECK(create_sync_objects());
|
||||
|
||||
|
||||
rse_init_time();
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user