mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
vulkan: use vkCmdClearColorImage to clear texture
using the vulkan functionality probably leads to less bugs. Until now it was assumed that any image was in the rgba8 format, which is of course not correct. Clearing a texture to white or black should now work for any format.
This commit is contained in:
@@ -40,6 +40,9 @@ namespace love {
|
||||
void copyBufferToImage(VkBuffer, VkImage, const Rect&);
|
||||
void createTextureImageView();
|
||||
void createTextureSampler();
|
||||
void clear(bool white);
|
||||
|
||||
VkClearColorValue getClearValue(bool white);
|
||||
|
||||
graphics::Graphics* gfx;
|
||||
VkDevice device;
|
||||
|
||||
Reference in New Issue
Block a user