Add bindless textures
Created bindless descriptors for holding texture data.
This commit is contained in:
1 parent
d328e38761
commit
bd4dd74881
13 files changed
+136
-43
No files matched your search
@@ -25,6 +25,15 @@ function(compile_shader)
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
# Replace CMAKE_IMAGE_MAX_COUNT in both source file and shader
|
||||
# TODO: Please do better
|
||||
file(READ src/rse_vulkan_image.c FILE_CONTENTS)
|
||||
string(REPLACE "<CMAKE_IMAGE_MAX_COUNT>" "1" FILE_CONTENTS "${FILE_CONTENTS}")
|
||||
file(WRITE src/rse_vulkan_image.c "${FILE_CONTENTS}")
|
||||
|
||||
file(READ shaders/shader.frag FILE_CONTENTS)
|
||||
string(REPLACE "<CMAKE_IMAGE_MAX_COUNT>" "1" FILE_CONTENTS "${FILE_CONTENTS}")
|
||||
file(WRITE src/shaders/shader.frag "${FILE_CONTENTS}")
|
||||
|
||||
|
||||
compile_shader(rse_graphics
|
||||
|
||||
Reference in new issue
Block a user