Add DepthStencilStateDesc

This commit is contained in:
Henrik Rydgård committed 2016-12-27 11:59:06 +01:00
1 parent f86b9f7900
commit c7c541f926
7 files changed
+80 -73

No files matched your search

+2 -2
View File
@@ -27,8 +27,8 @@ void UIContext::Init(Draw::DrawContext *thin3d, Draw::ShaderSet *uishader, Draw:
using namespace Draw;
thin3d_ = thin3d;
blendNormal_ = thin3d_->CreateBlendState({ true, BlendFactor::SRC_ALPHA, BlendFactor::ONE_MINUS_SRC_ALPHA });
sampler_ = thin3d_->CreateSamplerState({ TextureFilter::LINEAR, TextureFilter::LINEAR,TextureFilter::LINEAR });
depth_ = thin3d_->CreateDepthStencilState(false, false, Comparison::LESS);
sampler_ = thin3d_->CreateSamplerState({ TextureFilter::LINEAR, TextureFilter::LINEAR, TextureFilter::LINEAR });
depth_ = thin3d_->CreateDepthStencilState({ false, false, Comparison::LESS });
T3DRasterStateDesc desc;
desc.cull = CullMode::NONE;
desc.facing = Facing::CCW;