Port BufCreate, PoolCreate/PoolDestroy, DeviceCreatePools, DeviceCreateStreamBufs, IShaderLoad, ShaderCreate, ShaderDestroy, CGxShader::Load/dtor, CGxPool dtor, CGxDevice ctor/dtor and OsGetProcessorFeatures. CGxBuf gets its own header/source. CGxPool/CGxBuf/CGxAppRenderState/CGxPushedRenderState become structs (RTTI .?AU). HASHKEY_STRI derives from HASHKEY_STR. m_shaderList is TSHashTable<CGxShader, HASHKEY_STRI>[6]; list offsets via offsetof. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
7 lines
316 B
C++
7 lines
316 B
C++
#include <cstdint>
|
|
#include "Engine/Source/Gx/CGxBuf.h"
|
|
|
|
// INLINED
|
|
CGxBuf::CGxBuf(CGxPool* pool, uint32_t itemSize, uint32_t itemCount, uint32_t index) : m_pool(pool), m_itemSize(itemSize), m_itemCount(itemCount), m_size(itemSize * itemCount), m_index(index), unk_001C(0), unk_001D(1), unk_001E(0), unk_001F(0) {
|
|
}
|