Fix up fetching layer/mip for FBOs on replay

This commit is contained in:
baldurk
2015-07-18 18:27:34 +02:00
parent e5c1f8ee3b
commit 8213281921
8 changed files with 120 additions and 47 deletions
+10 -5
View File
@@ -277,15 +277,20 @@ struct GLPipelineState
bool32 FramebufferSRGB;
bool32 Dither;
struct Attachment
{
ResourceId Obj;
uint32_t Layer;
uint32_t Mip;
};
struct FBO
{
FBO() : Obj(), Depth(), Stencil() {}
ResourceId Obj;
rdctype::array<ResourceId> Color;
rdctype::array<uint32_t> Layer;
rdctype::array<uint32_t> Mip;
ResourceId Depth;
ResourceId Stencil;
rdctype::array<Attachment> Color;
Attachment Depth;
Attachment Stencil;
rdctype::array<int32_t> DrawBuffers;
int32_t ReadBuffer;