/* =========================================================================== IceTech GPL Source Code Copyright (C) 2026 Justin Marshall This file is part of the IceTech GPL Source Code (?IceTech Source Code?). IceTech Source Code is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. IceTech Source Code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with IceTech Source Code. If not, see . If you have questions concerning this license or the applicable additional terms, you may contact in writing Justin Marshall, justinmarshall20@gmail.com =========================================================================== */ #pragma once static const UINT QD3D12_ARB_MAX_PROGRAM_PARAMETERS = 128; static const UINT QD3D12_ARB_MAX_VERTEX_ATTRIBS = 16; static const UINT QD3D12_ARB_MAX_TEXTURE_UNITS = 8; struct QD3D12ARBDrawConstantArrays { float env[QD3D12_ARB_MAX_PROGRAM_PARAMETERS][4]; float vertexLocal[QD3D12_ARB_MAX_PROGRAM_PARAMETERS][4]; float fragmentLocal[QD3D12_ARB_MAX_PROGRAM_PARAMETERS][4]; }; void QD3D12ARB_Init(void); void QD3D12ARB_Shutdown(void); void QD3D12ARB_DeviceLost(void); void QD3D12ARB_SetEnabled(GLenum cap, bool enabled); bool QD3D12ARB_IsVertexEnabled(void); bool QD3D12ARB_IsFragmentEnabled(void); bool QD3D12ARB_IsActive(void); GLuint QD3D12ARB_GetBoundVertexProgram(void); GLuint QD3D12ARB_GetBoundFragmentProgram(void); uint32_t QD3D12ARB_GetBoundVertexRevision(void); uint32_t QD3D12ARB_GetBoundFragmentRevision(void); ID3DBlob* QD3D12ARB_GetVertexShaderBlob(void); ID3DBlob* QD3D12ARB_GetFragmentShaderBlob(void); void QD3D12ARB_FillDrawConstantArrays(QD3D12ARBDrawConstantArrays* outArrays); GLenum QD3D12ARB_ConsumeError(void); GLint QD3D12ARB_GetProgramErrorPosition(void); const char* QD3D12ARB_GetProgramErrorString(void);