| 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 | { |
no test coverage detected