From c1bf1a9448e98cb4f626aa5fe837278ac8b12be0 Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Thu, 24 Jun 2021 10:24:39 +0200 Subject: sokol_gfx.h d3d11: remove no longer required zero-array items from backend state --- sokol_gfx.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sokol_gfx.h b/sokol_gfx.h index 0c512c4d..047c5007 100644 --- a/sokol_gfx.h +++ b/sokol_gfx.h @@ -3597,14 +3597,6 @@ typedef struct { HINSTANCE d3dcompiler_dll; bool d3dcompiler_dll_load_failed; pD3DCompile D3DCompile_func; - /* the following arrays are used for unbinding resources, they will always contain zeroes */ - ID3D11RenderTargetView* zero_rtvs[SG_MAX_COLOR_ATTACHMENTS]; - ID3D11Buffer* zero_vbs[SG_MAX_SHADERSTAGE_BUFFERS]; - UINT zero_vb_offsets[SG_MAX_SHADERSTAGE_BUFFERS]; - UINT zero_vb_strides[SG_MAX_SHADERSTAGE_BUFFERS]; - ID3D11Buffer* zero_cbs[SG_MAX_SHADERSTAGE_UBS]; - ID3D11ShaderResourceView* zero_srvs[SG_MAX_SHADERSTAGE_IMAGES]; - ID3D11SamplerState* zero_smps[SG_MAX_SHADERSTAGE_IMAGES]; /* global subresourcedata array for texture updates */ D3D11_SUBRESOURCE_DATA subres_data[SG_MAX_MIPMAPS * SG_MAX_TEXTUREARRAY_LAYERS]; } _sg_d3d11_backend_t; -- cgit v1.2.3