}
DataType type = get_component_type(pf);
- return static_cast<FrameAttachment>((fa&0xFC00) | (is_float(type)*0x80) | get_type_size(type)<<4 | get_component_count(comp));
+ return static_cast<FrameAttachment>((fa&0xFC00) | (is_float(type)*0x100) | get_type_size(type)<<4 | get_component_count(comp));
}
FrameAttachment make_indexed_attachment(FrameAttachment fa, unsigned i)
comp = static_cast<PixelComponents>(fa&7);
DataType type;
- if(fa&0x80)
+ if(fa&0x100)
type = static_cast<DataType>((fa&0x70)>>4 | 0x300);
else
type = static_cast<DataType>((fa&0x70)>>4);
Describes a single attachment of a framebuffer. The values are bitfields laid
as follows:
-nnnn nn__ fsss _ccc
- │ │ │ └╴Number of components
- │ │ └─────╴Size of one component
- │ └────────╴Floating-point flag
+nnnn nn_f _sss _ccc
+ │ │ │ └╴Number of components
+ │ │ └─────╴Size of one component
+ │ └──────────╴Floating-point flag
└────────────╴Attachment index
This information is presented for internal documentation purposes only; it is
enum FrameAttachment
{
COLOR_ATTACHMENT = 0x0014,
- DEPTH_ATTACHMENT = 0xF8C1,
+ DEPTH_ATTACHMENT = 0xF941,
STENCIL_ATTACHMENT = 0xFC11
};