Plasma Engine  2.0
Loading...
Searching...
No Matches
plTexFormat.h
1#pragma once
2
3#include <Foundation/Basics.h>
4#include <Foundation/Types/Enum.h>
5#include <Texture/Image/ImageEnums.h>
6#include <Texture/TexConv/TexConvEnums.h>
7
10
11struct PL_TEXTURE_DLL plTexFormat
12{
13 bool m_bSRGB = false;
14 plEnum<plImageAddressMode> m_AddressModeU;
15 plEnum<plImageAddressMode> m_AddressModeV;
16 plEnum<plImageAddressMode> m_AddressModeW;
17
18 // version 2
19 plEnum<plTextureFilterSetting> m_TextureFilter;
20
21 // version 3
22 plInt16 m_iRenderTargetResolutionX = 0;
23 plInt16 m_iRenderTargetResolutionY = 0;
24
25 // version 4
26 float m_fResolutionScale = 1.0f;
27
28 // version 5
29 int m_GalRenderTargetFormat = 0;
30
31 void WriteTextureHeader(plStreamWriter& inout_stream) const;
32 void WriteRenderTargetHeader(plStreamWriter& inout_stream) const;
33 void ReadHeader(plStreamReader& inout_stream);
34};
Interface for binary in (read) streams.
Definition Stream.h:22
Interface for binary out (write) streams.
Definition Stream.h:107
A custom enum implementation that allows to define the underlying storage type to control its memory ...
Definition Enum.h:37
Definition plTexFormat.h:12