MCPcopy Create free account
hub / github.com/defold/defold / VulkanLoadOp

Function VulkanLoadOp

engine/graphics/src/vulkan/graphics_vulkan.cpp:4098–4109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4096 }
4097
4098 static inline VkAttachmentLoadOp VulkanLoadOp(AttachmentOp op)
4099 {
4100 switch(op)
4101 {
4102 case ATTACHMENT_OP_LOAD: return VK_ATTACHMENT_LOAD_OP_LOAD;
4103 case ATTACHMENT_OP_CLEAR: return VK_ATTACHMENT_LOAD_OP_CLEAR;
4104 case ATTACHMENT_OP_DONT_CARE: return VK_ATTACHMENT_LOAD_OP_DONT_CARE;
4105 default:break;
4106 }
4107 assert(0);
4108 return (VkAttachmentLoadOp) -1;
4109 }
4110
4111 static VkResult CreateRenderTarget(VulkanContext* context, HTexture* color_textures, BufferType* buffer_types, uint8_t num_color_textures, HTexture depth_stencil_texture, uint32_t width, uint32_t height, VulkanRenderTarget* rtOut)
4112 {

Callers 1

CreateRenderTargetFunction · 0.85

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected