depthStencilDesc.Usage = #D3D11_USAGE_DEFAULT
depthStencilDesc.BindFlags = #D3D11_BIND_DEPTH_STENCIL
depthStencilDesc.CPUAccessFlags = 0
depthStencilDesc.MiscFlags = 0
' 创建深度缓冲区以及深度模板视图
D3D11.CreateTexture2D (depthStencilDesc, 0, ID3D11Texture2D)
D3D11.CreateDepthStencilView (ID3D11Texture2D.this (), 0, ID3D11DepthStencilView)
' 将渲染目标视图和深度/模板缓冲区结合到管线
md3dImmediateContext.OMSetRenderTargets (1, ID3D11RenderTargetView.GetAddressOf (), ID3D11DepthStencilView.this ())
上一篇 易语言DLL动态调用实例
下一篇 多线程检测网页是否被百度收录软件