*
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#ifndef d3d11_helper_h__
|
||||
#define d3d11_helper_h__
|
||||
|
||||
#include "d3d11_types.h"
|
||||
|
||||
class d3d11_helper {
|
||||
public:
|
||||
static void DefaultDepthStencilDesc(D3D11_DEPTH_STENCIL_DESC& desc) {
|
||||
desc.DepthEnable = TRUE;
|
||||
desc.DepthWriteMask = D3D11_DEPTH_WRITE_MASK_ALL;
|
||||
desc.DepthFunc = D3D11_COMPARISON_LESS;
|
||||
desc.StencilEnable = FALSE;
|
||||
desc.StencilReadMask = D3D11_DEFAULT_STENCIL_READ_MASK;
|
||||
desc.StencilWriteMask = D3D11_DEFAULT_STENCIL_WRITE_MASK;
|
||||
desc.FrontFace.StencilFunc = D3D11_COMPARISON_ALWAYS;
|
||||
desc.BackFace.StencilFunc = D3D11_COMPARISON_ALWAYS;
|
||||
desc.FrontFace.StencilDepthFailOp = D3D11_STENCIL_OP_KEEP;
|
||||
desc.BackFace.StencilDepthFailOp = D3D11_STENCIL_OP_KEEP;
|
||||
desc.FrontFace.StencilPassOp = D3D11_STENCIL_OP_KEEP;
|
||||
desc.BackFace.StencilPassOp = D3D11_STENCIL_OP_KEEP;
|
||||
desc.FrontFace.StencilFailOp = D3D11_STENCIL_OP_KEEP;
|
||||
desc.BackFace.StencilFailOp = D3D11_STENCIL_OP_KEEP;
|
||||
}
|
||||
};
|
||||
#endif // d3d11_helper_h__
|
||||
Reference in New Issue
Block a user