mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
vulkan: adjust code styling
This commit is contained in:
@@ -1,20 +1,25 @@
|
||||
#ifndef LOVE_GRAPHICS_VULKAN_VULKAN_H
|
||||
#define LOVE_GRAPHICS_VULKAN_VULKAN_H
|
||||
#pragma once
|
||||
|
||||
#include "graphics/Graphics.h"
|
||||
#include "VulkanWrapper.h"
|
||||
|
||||
namespace love {
|
||||
namespace graphics {
|
||||
namespace vulkan {
|
||||
enum InternalFormatRepresentation {
|
||||
namespace love
|
||||
{
|
||||
namespace graphics
|
||||
{
|
||||
namespace vulkan
|
||||
{
|
||||
|
||||
enum InternalFormatRepresentation
|
||||
{
|
||||
FORMATREPRESENTATION_FLOAT,
|
||||
FORMATREPRESENTATION_UINT,
|
||||
FORMATREPRESENTATION_SINT,
|
||||
FORMATREPRESENTATION_MAX_ENUM
|
||||
};
|
||||
|
||||
struct TextureFormat {
|
||||
struct TextureFormat
|
||||
{
|
||||
InternalFormatRepresentation internalFormatRepresentation;
|
||||
VkFormat internalFormat = VK_FORMAT_UNDEFINED;
|
||||
|
||||
@@ -24,7 +29,8 @@ struct TextureFormat {
|
||||
VkComponentSwizzle swizzleA = VK_COMPONENT_SWIZZLE_IDENTITY;
|
||||
};
|
||||
|
||||
class Vulkan {
|
||||
class Vulkan
|
||||
{
|
||||
public:
|
||||
static void shaderSwitch();
|
||||
static uint32_t getNumShaderSwitches();
|
||||
@@ -59,8 +65,7 @@ public:
|
||||
VkCommandBuffer, VkImage, VkImageLayout oldLayout, VkImageLayout newLayout,
|
||||
uint32_t baseLevel = 0, uint32_t levelCount = 1, uint32_t baseLayer = 0, uint32_t layerCount = 1);
|
||||
};
|
||||
|
||||
} // vulkan
|
||||
} // graphics
|
||||
} // love
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user