Path: blob/21.2-virgl/src/gallium/frontends/d3d10umd/OutputMerger.h
4566 views
/**************************************************************************1*2* Copyright 2012-2021 VMware, Inc.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR14* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,15* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL16* THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,17* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR18* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE19* USE OR OTHER DEALINGS IN THE SOFTWARE.20*21* The above copyright notice and this permission notice (including the22* next paragraph) shall be included in all copies or substantial portions23* of the Software.24*25**************************************************************************/2627/*28* OutputMerger.h --29* Functions that manipulate the output merger state.30*/3132#ifndef OUTPUT_MERGER_H33#define OUTPUT_MERGER_H3435#include "DriverIncludes.h"3637SIZE_T APIENTRY CalcPrivateRenderTargetViewSize(38D3D10DDI_HDEVICE hDevice,39__in const D3D10DDIARG_CREATERENDERTARGETVIEW *pCreateRenderTargetView);4041void APIENTRY CreateRenderTargetView(42D3D10DDI_HDEVICE hDevice,43__in const D3D10DDIARG_CREATERENDERTARGETVIEW *pCreateRenderTargetView,44D3D10DDI_HRENDERTARGETVIEW hRenderTargetView,45D3D10DDI_HRTRENDERTARGETVIEW hRTRenderTargetView);4647void APIENTRY DestroyRenderTargetView(D3D10DDI_HDEVICE hDevice,48D3D10DDI_HRENDERTARGETVIEW hRenderTargetView);4950void APIENTRY ClearRenderTargetView(D3D10DDI_HDEVICE hDevice,51D3D10DDI_HRENDERTARGETVIEW hRenderTargetView,52FLOAT pColorRGBA[4]);5354SIZE_T APIENTRY CalcPrivateDepthStencilViewSize(55D3D10DDI_HDEVICE hDevice,56__in const D3D10DDIARG_CREATEDEPTHSTENCILVIEW *pCreateDepthStencilView);5758void APIENTRY CreateDepthStencilView(59D3D10DDI_HDEVICE hDevice,60__in const D3D10DDIARG_CREATEDEPTHSTENCILVIEW *pCreateDepthStencilView,61D3D10DDI_HDEPTHSTENCILVIEW hDepthStencilView,62D3D10DDI_HRTDEPTHSTENCILVIEW hRTDepthStencilView);6364void APIENTRY DestroyDepthStencilView(D3D10DDI_HDEVICE hDevice,65D3D10DDI_HDEPTHSTENCILVIEW hDepthStencilView);6667void APIENTRY ClearDepthStencilView(D3D10DDI_HDEVICE hDevice,68D3D10DDI_HDEPTHSTENCILVIEW hDepthStencilView,69UINT Flags, FLOAT Depth, UINT8 Stencil);7071SIZE_T APIENTRY CalcPrivateBlendStateSize(D3D10DDI_HDEVICE hDevice,72__in const D3D10_DDI_BLEND_DESC *pBlendDesc);7374SIZE_T APIENTRY CalcPrivateBlendStateSize1(D3D10DDI_HDEVICE hDevice,75__in const D3D10_1_DDI_BLEND_DESC *pBlendDesc);7677void APIENTRY CreateBlendState(D3D10DDI_HDEVICE hDevice,78__in const D3D10_DDI_BLEND_DESC *pBlendDesc,79D3D10DDI_HBLENDSTATE hBlendState,80D3D10DDI_HRTBLENDSTATE hRTBlendState);8182void APIENTRY CreateBlendState1(D3D10DDI_HDEVICE hDevice,83__in const D3D10_1_DDI_BLEND_DESC *pBlendDesc,84D3D10DDI_HBLENDSTATE hBlendState,85D3D10DDI_HRTBLENDSTATE hRTBlendState);8687void APIENTRY DestroyBlendState(D3D10DDI_HDEVICE hDevice, D3D10DDI_HBLENDSTATE hBlendState);8889void APIENTRY SetBlendState(D3D10DDI_HDEVICE hDevice, D3D10DDI_HBLENDSTATE hState,90const FLOAT pBlendFactor[4], UINT SampleMask);9192void APIENTRY SetRenderTargets(93D3D10DDI_HDEVICE hDevice,94__in_ecount (NumViews) const D3D10DDI_HRENDERTARGETVIEW *phRenderTargetView,95UINT RTargets, UINT ClearTargets, D3D10DDI_HDEPTHSTENCILVIEW hDepthStencilView);9697SIZE_T APIENTRY CalcPrivateDepthStencilStateSize(98D3D10DDI_HDEVICE hDevice,99__in const D3D10_DDI_DEPTH_STENCIL_DESC *pDepthStencilDesc);100101void APIENTRY CreateDepthStencilState(102D3D10DDI_HDEVICE hDevice,103__in const D3D10_DDI_DEPTH_STENCIL_DESC *pDepthStencilDesc,104D3D10DDI_HDEPTHSTENCILSTATE hDepthStencilState,105D3D10DDI_HRTDEPTHSTENCILSTATE hRTDepthStencilState);106107void APIENTRY DestroyDepthStencilState(D3D10DDI_HDEVICE hDevice,108D3D10DDI_HDEPTHSTENCILSTATE hDepthStencilState);109110void APIENTRY SetDepthStencilState(D3D10DDI_HDEVICE hDevice,111D3D10DDI_HDEPTHSTENCILSTATE hState, UINT StencilRef);112113#endif /* OUTPUT_MERGER_H */114115116