mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 11:12:29 +00:00
feat(gx): stub out state sync for d3d backend
This commit is contained in:
parent
02ddaa106f
commit
38380ebc35
2 changed files with 34 additions and 0 deletions
|
|
@ -875,6 +875,10 @@ void CGxDeviceD3d::ISetTexture(uint32_t tmu, CGxTex* texId) {
|
|||
}
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::IShaderConstantsFlush() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::IShaderCreate(CGxShader* shader) {
|
||||
if (shader->target == GxSh_Vertex) {
|
||||
this->IShaderCreateVertex(shader);
|
||||
|
|
@ -925,6 +929,32 @@ void CGxDeviceD3d::IShaderCreateVertex(CGxShader* shader) {
|
|||
|
||||
void CGxDeviceD3d::IStateSync() {
|
||||
// TODO
|
||||
|
||||
this->IShaderConstantsFlush();
|
||||
this->IRsSync(0);
|
||||
|
||||
// TODO ffp if vertex shader is disabled
|
||||
|
||||
this->IStateSyncEnables();
|
||||
|
||||
// TODO
|
||||
|
||||
this->IStateSyncVertexPtrs();
|
||||
this->IStateSyncIndexPtr();
|
||||
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::IStateSyncEnables() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::IStateSyncIndexPtr() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::IStateSyncVertexPtrs() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::ITexCreate(CGxTex* texId) {
|
||||
|
|
|
|||
|
|
@ -254,9 +254,13 @@ class CGxDeviceD3d : public CGxDevice {
|
|||
void IDestroyD3dDevice();
|
||||
void ISetCaps(const CGxFormat& format);
|
||||
void ISetTexture(uint32_t tmu, CGxTex* texId);
|
||||
void IShaderConstantsFlush();
|
||||
void IShaderCreatePixel(CGxShader* shader);
|
||||
void IShaderCreateVertex(CGxShader* shader);
|
||||
void IStateSync();
|
||||
void IStateSyncEnables();
|
||||
void IStateSyncIndexPtr();
|
||||
void IStateSyncVertexPtrs();
|
||||
void ITexCreate(CGxTex* texId);
|
||||
void ITexUpload(CGxTex* texId);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue