9 #ifndef hifi_gpu_Renderpass_h
10 #define hifi_gpu_Renderpass_h
37 Attachment(
const Element& element, LoadOp loadOp, StoreOp storeOp, LoadOp stencilLoadOp = LoadOp::DontCare, StoreOp stencilStoreOp = StoreOp::DontCare);
39 LoadOp loadOp{ LoadOp::DontCare };
40 StoreOp storeOp{ StoreOp::DontCare };
41 LoadOp stencilLoadOp{ LoadOp::DontCare };
42 StoreOp stencilStoreOp{ StoreOp::DontCare };
44 uint32_t getRaw()
const;
45 void setRaw(uint32_t raw);
50 using Attachments = std::vector<Attachment>;
53 virtual ~Renderpass();
55 void addColorAttachment(
const Element& element, LoadOp load, StoreOp store);
56 void setDepthStencilAttachment(
const Element& element, LoadOp load, StoreOp store, LoadOp stencilLoadOp = LoadOp::DontCare, StoreOp stencilStoreOp = StoreOp::DontCare);
59 Attachments _colorAttachments;
60 Attachment _depthStencilAttachment;