Basic UI quad, yay
This commit is contained in:
@@ -549,6 +549,7 @@ public:
|
||||
virtual void bindVertexBuffer(const Array<VertexInputStream>& streams) = 0;
|
||||
virtual void bindIndexBuffer(Gfx::PIndexBuffer indexBuffer) = 0;
|
||||
virtual void draw(const MeshBatchElement& data) = 0;
|
||||
virtual void draw(uint32 vertexCount, uint32 instanceCount, int32 firstVertex, uint32 firstInstance) = 0;
|
||||
std::string name;
|
||||
};
|
||||
DEFINE_REF(RenderCommand)
|
||||
@@ -588,6 +589,14 @@ public:
|
||||
{
|
||||
return samples;
|
||||
}
|
||||
uint32 getSizeX() const
|
||||
{
|
||||
return sizeX;
|
||||
}
|
||||
uint32 getSizeY() const
|
||||
{
|
||||
return sizeY;
|
||||
}
|
||||
|
||||
protected:
|
||||
uint32 sizeX;
|
||||
@@ -628,7 +637,11 @@ public:
|
||||
SeAttachmentStoreOp storeOp = SE_ATTACHMENT_STORE_OP_STORE,
|
||||
SeAttachmentLoadOp stencilLoadOp = SE_ATTACHMENT_LOAD_OP_DONT_CARE,
|
||||
SeAttachmentStoreOp stencilStoreOp = SE_ATTACHMENT_STORE_OP_DONT_CARE)
|
||||
: loadOp(loadOp), storeOp(storeOp), stencilLoadOp(stencilLoadOp), stencilStoreOp(stencilStoreOp), texture(texture)
|
||||
: loadOp(loadOp)
|
||||
, storeOp(storeOp)
|
||||
, stencilLoadOp(stencilLoadOp)
|
||||
, stencilStoreOp(stencilStoreOp)
|
||||
, texture(texture)
|
||||
{
|
||||
}
|
||||
virtual ~RenderTargetAttachment()
|
||||
@@ -646,6 +659,14 @@ public:
|
||||
{
|
||||
return texture->getNumSamples();
|
||||
}
|
||||
virtual uint32 getSizeX() const
|
||||
{
|
||||
return texture->getSizeX();
|
||||
}
|
||||
virtual uint32 getSizeY() const
|
||||
{
|
||||
return texture->getSizeY();
|
||||
}
|
||||
inline SeAttachmentLoadOp getLoadOp() const { return loadOp; }
|
||||
inline SeAttachmentStoreOp getStoreOp() const { return storeOp; }
|
||||
inline SeAttachmentLoadOp getStencilLoadOp() const { return stencilLoadOp; }
|
||||
@@ -665,7 +686,7 @@ class SwapchainAttachment : public RenderTargetAttachment
|
||||
{
|
||||
public:
|
||||
SwapchainAttachment(PWindow owner,
|
||||
SeAttachmentLoadOp loadOp = SE_ATTACHMENT_LOAD_OP_CLEAR,
|
||||
SeAttachmentLoadOp loadOp = SE_ATTACHMENT_LOAD_OP_LOAD,
|
||||
SeAttachmentStoreOp storeOp = SE_ATTACHMENT_STORE_OP_STORE,
|
||||
SeAttachmentLoadOp stencilLoadOp = SE_ATTACHMENT_LOAD_OP_DONT_CARE,
|
||||
SeAttachmentStoreOp stencilStoreOp = SE_ATTACHMENT_STORE_OP_DONT_CARE)
|
||||
@@ -689,7 +710,14 @@ public:
|
||||
{
|
||||
return owner->getNumSamples();
|
||||
}
|
||||
|
||||
virtual uint32 getSizeX() const
|
||||
{
|
||||
return owner->getSizeX();
|
||||
}
|
||||
virtual uint32 getSizeY() const
|
||||
{
|
||||
return owner->getSizeY();
|
||||
}
|
||||
private:
|
||||
PWindow owner;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user