Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 910 vs 911 for /trunk/Source Code/Platform/Video/Buffers/RenderTarget/Headers/RTAttachment.h

Diff revisions: vs.
  @@ -42,7 +42,7 @@
42 42 public:
43 43 /// This enum is used when creating render targets to define the channel that
44 44 /// the texture will attach to
45 - enum class Type : U32 {
45 + enum class Type : U8 {
46 46 Colour = 0,
47 47 Depth = 1,
48 48 Stencil = 2,
  @@ -84,6 +84,13 @@
84 84
85 85 TYPEDEF_SMART_POINTERS_FOR_CLASS(RTAttachment);
86 86
87 + struct RTAttachmentDescriptor {
88 + TextureDescriptor _texDescriptor;
89 + RTAttachment::Type _type = RTAttachment::Type::COUNT;
90 + U8 _index = 0;
91 + vec4<F32> _clearColour = DefaultColours::WHITE();
92 + };
93 +
87 94 }; //namespace Divide
88 95
89 96 #endif //_RENDER_TARGET_ATTACHMENT_H_