Minor cleanup and texture update
This commit is contained in:
1 parent
2d230d7280
commit
3bd14b20c2
9 files changed
+8
-16
No files matched your search
@@ -25,17 +25,6 @@ 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
|
||||
ENV opengl
|
||||
FORMAT num
|
||||
|
||||
Reference in new issue
Block a user