mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
some work on drawQuads (not fully working yet)
This commit is contained in:
@@ -1,15 +1,25 @@
|
||||
#ifndef LOVE_GRAPHICS_VULKAN_VULKAN_H
|
||||
#define LOVE_GRAPHICS_VULKAN_VULKAN_H
|
||||
|
||||
#include "Vulkan.h"
|
||||
#include "Graphics.h"
|
||||
#include "graphics/Graphics.h"
|
||||
#include "vulkan/vulkan.h"
|
||||
|
||||
namespace love {
|
||||
namespace graphics {
|
||||
namespace vulkan {
|
||||
struct TextureFormat {
|
||||
VkFormat internalFormat = VK_FORMAT_UNDEFINED;
|
||||
|
||||
VkComponentSwizzle swizzleR = VK_COMPONENT_SWIZZLE_IDENTITY;
|
||||
VkComponentSwizzle swizzleG = VK_COMPONENT_SWIZZLE_IDENTITY;
|
||||
VkComponentSwizzle swizzleB = VK_COMPONENT_SWIZZLE_IDENTITY;
|
||||
VkComponentSwizzle swizzleA = VK_COMPONENT_SWIZZLE_IDENTITY;
|
||||
};
|
||||
|
||||
class Vulkan {
|
||||
public:
|
||||
static VkFormat getVulkanVertexFormat(DataFormat format);
|
||||
static TextureFormat getTextureFormat(PixelFormat);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user