mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 11:48:36 +01:00
thin3d: Add sampler state selection.
This commit is contained in:
1 parent
0d68a172a9
commit
05fee24ccf
7 files changed
+192
-26
No files matched your search
@@ -94,6 +94,12 @@ void Thin3DContext::CreatePresets() {
|
||||
bsPresets_[BS_STANDARD_ALPHA] = CreateBlendState(standard_alpha);
|
||||
bsPresets_[BS_PREMUL_ALPHA] = CreateBlendState(premul_alpha);
|
||||
|
||||
T3DSamplerStateDesc nearest = { CLAMP, CLAMP, NEAREST, NEAREST, NEAREST };
|
||||
T3DSamplerStateDesc linear = { CLAMP, CLAMP, LINEAR, LINEAR, NEAREST };
|
||||
|
||||
sampsPresets_[SAMPS_NEAREST] = CreateSamplerState(nearest);
|
||||
sampsPresets_[SAMPS_LINEAR] = CreateSamplerState(linear);
|
||||
|
||||
vsPresets_[VS_TEXTURE_COLOR_2D] = CreateVertexShader(glsl_vsTexCol, hlslVsTexCol);
|
||||
vsPresets_[VS_COLOR_2D] = CreateVertexShader(glsl_vsCol, hlslVsCol);
|
||||
|
||||
|
||||
Reference in new issue
Block a user