Compare commits

..

3 Commits

Author SHA1 Message Date
fallenoak
619bcca778
feat(gx): add CGxDevice::m_textureTarget
Some checks are pending
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:cl compiler_name:MSVC cxx:cl os:windows-latest system_name:Windows test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:clang compiler_name:Clang cxx:clang++ os:macos-latest system_name:macOS test_path:WhoaTest]) (push) Waiting to run
Push / ${{ matrix.build.system_name }} / ${{ matrix.build.build_type }} / ${{ matrix.build.compiler_name }} (map[build_type:Release cc:gcc compiler_name:GCC cxx:g++ os:ubuntu-latest system_name:Linux test_path:WhoaTest]) (push) Waiting to run
2026-02-18 06:19:28 -06:00
fallenoak
4782c554fc
feat(gx): add CGxDevice::TextureTarget 2026-02-18 06:15:53 -06:00
fallenoak
8c518f7e6d
feat(gx): add EGxBuffer 2026-02-18 06:14:31 -06:00
2 changed files with 16 additions and 0 deletions

View File

@ -38,6 +38,13 @@ struct ShaderConstants {
class CGxDevice {
public:
// Structs
struct TextureTarget {
CGxTex* m_texture;
uint32_t m_plane;
void* m_apiSpecific;
};
// Static variables
static uint32_t s_alphaRef[];
static C3Vector s_pointScaleIdentity;
@ -116,6 +123,9 @@ class CGxDevice {
int32_t m_primIndexDirty = 0;
TSFixedArray<CGxAppRenderState> m_appRenderStates;
TSFixedArray<CGxStateBom> m_hwRenderStates;
// TODO
TextureTarget m_textureTarget[GxBuffers_Last];
// TODO
uint32_t m_baseMipLevel = 0; // TODO placeholder
// Virtual member functions

View File

@ -54,6 +54,12 @@ enum EGxBlend {
GxBlends_Last = 12
};
enum EGxBuffer {
GxBuffers_Color = 0,
GxBuffers_Depth = 1,
GxBuffers_Last,
};
enum EGxColorFormat {
GxCF_argb = 0,
GxCF_rgba = 1,