mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
vulkan: code styling
This commit is contained in:
@@ -2182,7 +2182,7 @@ VkRenderPass Graphics::createRenderPass(RenderPassConfiguration &configuration)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VkRenderPass Graphics::getRenderPass(RenderPassConfiguration& configuration)
|
VkRenderPass Graphics::getRenderPass(RenderPassConfiguration &configuration)
|
||||||
{
|
{
|
||||||
VkRenderPass renderPass;
|
VkRenderPass renderPass;
|
||||||
auto it = renderPasses.find(configuration);
|
auto it = renderPasses.find(configuration);
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ struct ColorAttachment
|
|||||||
VkAttachmentLoadOp loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
|
VkAttachmentLoadOp loadOp = VK_ATTACHMENT_LOAD_OP_LOAD;
|
||||||
VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT;
|
VkSampleCountFlagBits msaaSamples = VK_SAMPLE_COUNT_1_BIT;
|
||||||
|
|
||||||
bool operator==(const ColorAttachment&attachment) const
|
bool operator==(const ColorAttachment &attachment) const
|
||||||
{
|
{
|
||||||
return format == attachment.format &&
|
return format == attachment.format &&
|
||||||
loadOp == attachment.loadOp &&
|
loadOp == attachment.loadOp &&
|
||||||
@@ -351,7 +351,7 @@ private:
|
|||||||
VkFramebuffer getFramebuffer(FramebufferConfiguration &configuration);
|
VkFramebuffer getFramebuffer(FramebufferConfiguration &configuration);
|
||||||
void createDefaultShaders();
|
void createDefaultShaders();
|
||||||
VkRenderPass createRenderPass(RenderPassConfiguration &configuration);
|
VkRenderPass createRenderPass(RenderPassConfiguration &configuration);
|
||||||
VkRenderPass getRenderPass(RenderPassConfiguration& configuration);
|
VkRenderPass getRenderPass(RenderPassConfiguration &configuration);
|
||||||
VkPipeline createGraphicsPipeline(GraphicsPipelineConfiguration &configuration);
|
VkPipeline createGraphicsPipeline(GraphicsPipelineConfiguration &configuration);
|
||||||
void createColorResources();
|
void createColorResources();
|
||||||
VkFormat findSupportedFormat(const std::vector<VkFormat> &candidates, VkImageTiling tiling, VkFormatFeatureFlags features);
|
VkFormat findSupportedFormat(const std::vector<VkFormat> &candidates, VkImageTiling tiling, VkFormatFeatureFlags features);
|
||||||
|
|||||||
Reference in New Issue
Block a user