CommonLibSSE (Parapets fork)
State.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSTArray.h"
4 #include "RE/N/NiSmartPointer.h"
5 #include "RE/N/NiTexture.h"
6 
7 namespace RE
8 {
9  namespace BSGraphics
10  {
11  class State
12  {
13  public:
14  [[nodiscard]] static State* GetSingleton();
15 
16  // members
21  std::uint32_t unk020; // 020
22  std::uint32_t screenWidth; // 024
23  std::uint32_t screenHeight; // 028
24  std::uint32_t frameBufferViewport[2]; // 02C
25  std::uint32_t unk034; // 034
26  std::uint64_t unk038; // 038
27  std::uint64_t unk040; // 040
28  std::uint64_t unk048; // 048
29  bool insideFrame; // 050
30  bool letterbox; // 051
31  std::uint16_t unk052; // 052
32  std::uint32_t unk054; // 054
33  std::uint32_t unk058; // 058
34  std::uint32_t unk05C; // 05C
35  NiPointer<NiTexture> unk060; // 060 - black?
45  std::uint32_t unk0C0; // 0C0
46  float unk0C4[2][8]; // 0C4
47  float dynamicResolutionWidth; // 104
51  std::uint32_t unk114; // 114
52  std::uint32_t unk118; // 118
53 #ifndef SKYRIMVR
54  std::uint8_t unk11C; // 11C
55  std::uint8_t unk11D; // 11D
56  std::uint8_t unk11E; // 11E
57  std::uint8_t pad11F; // 11F
58 #else
59  std::uint8_t unkVR11C; // 11C
60  std::uint8_t unkVR11D; // 11D
61  std::uint16_t padVR11E; // 11E
62  std::int32_t unkVR120; // 120
63  std::uint32_t padVR124; // 124
64 #endif
65  };
66 #ifndef SKYRIMVR
67  static_assert(sizeof(State) == 0x120);
68 #endif
69  }
70 }
Definition: State.h:12
std::uint8_t unk11E
Definition: State.h:56
std::uint32_t frameBufferViewport[2]
Definition: State.h:24
float prevDynamicResolutionWidth
Definition: State.h:49
float unk0C4[2][8]
Definition: State.h:46
NiPointer< NiTexture > projectedNormal
Definition: State.h:19
std::uint64_t unk048
Definition: State.h:28
bool insideFrame
Definition: State.h:29
std::uint32_t screenWidth
Definition: State.h:22
NiPointer< NiTexture > unk060
Definition: State.h:35
std::uint32_t unk118
Definition: State.h:52
NiPointer< NiTexture > defaultTextureNormalMap
Definition: State.h:42
std::uint32_t unk054
Definition: State.h:32
std::uint32_t unk020
Definition: State.h:21
std::uint64_t unk040
Definition: State.h:27
float dynamicResolutionWidth
Definition: State.h:47
NiPointer< NiTexture > projectedNormalDetail
Definition: State.h:20
std::uint64_t unk038
Definition: State.h:26
static State * GetSingleton()
NiPointer< NiTexture > defaultTextureGrey
Definition: State.h:37
NiPointer< NiTexture > ditheringNoise
Definition: State.h:43
float prevDynamicResolutionHeight
Definition: State.h:50
std::uint8_t unk11D
Definition: State.h:55
std::uint32_t unk0C0
Definition: State.h:45
NiPointer< NiTexture > defaultReflectionCubeMap
Definition: State.h:39
std::uint8_t pad11F
Definition: State.h:57
NiPointer< NiTexture > projectedNoise
Definition: State.h:17
std::uint32_t unk058
Definition: State.h:33
std::uint32_t unk034
Definition: State.h:25
std::uint32_t unk114
Definition: State.h:51
NiPointer< NiTexture > defaultTexEffectMap
Definition: State.h:41
std::uint32_t unk05C
Definition: State.h:34
NiPointer< NiTexture > defaultTextureWhite
Definition: State.h:36
std::uint32_t screenHeight
Definition: State.h:23
bool letterbox
Definition: State.h:30
std::uint8_t unk11C
Definition: State.h:54
BSTArray< void * > unk0A8
Definition: State.h:44
NiPointer< NiTexture > defaultFaceDetailMap
Definition: State.h:40
NiPointer< NiTexture > defaultHeightMap
Definition: State.h:38
std::uint16_t unk052
Definition: State.h:31
NiPointer< NiTexture > projectedDiffuse
Definition: State.h:18
float dynamicResolutionHeight
Definition: State.h:48
Definition: NiSmartPointer.h:9
Definition: AbsorbEffect.h:6