17 D3D11_SAMPLER_DESC desc;
29 desc.MinLOD = samplerState->
minLOD;
30 desc.MaxLOD = samplerState->
maxLOD;
33 ID3D11SamplerState* state =
nullptr;
34 HRESULT hr = device->CreateSamplerState(&desc, &state);
43 return std::make_shared<DX11SamplerState>(
44 reinterpret_cast<ID3D11Device*
>(device),
45 static_cast<SamplerState const*>(
object));
55 D3D11_FILTER_MIN_MAG_MIP_POINT,
56 D3D11_FILTER_MIN_MAG_POINT_MIP_LINEAR,
57 D3D11_FILTER_MIN_POINT_MAG_LINEAR_MIP_POINT,
58 D3D11_FILTER_MIN_POINT_MAG_MIP_LINEAR,
59 D3D11_FILTER_MIN_LINEAR_MAG_MIP_POINT,
60 D3D11_FILTER_MIN_LINEAR_MAG_POINT_MIP_LINEAR,
61 D3D11_FILTER_MIN_MAG_LINEAR_MIP_POINT,
62 D3D11_FILTER_MIN_MAG_MIP_LINEAR,
63 D3D11_FILTER_ANISOTROPIC,
64 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_POINT,
65 D3D11_FILTER_COMPARISON_MIN_MAG_POINT_MIP_LINEAR,
66 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT,
67 D3D11_FILTER_COMPARISON_MIN_POINT_MAG_MIP_LINEAR,
68 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_MIP_POINT,
69 D3D11_FILTER_COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR,
70 D3D11_FILTER_COMPARISON_MIN_MAG_LINEAR_MIP_POINT,
71 D3D11_FILTER_COMPARISON_MIN_MAG_MIP_LINEAR,
72 D3D11_FILTER_COMPARISON_ANISOTROPIC
77 D3D11_TEXTURE_ADDRESS_WRAP,
78 D3D11_TEXTURE_ADDRESS_MIRROR,
79 D3D11_TEXTURE_ADDRESS_CLAMP,
80 D3D11_TEXTURE_ADDRESS_BORDER,
81 D3D11_TEXTURE_ADDRESS_MIRROR_ONCE
86 D3D11_COMPARISON_NEVER,
87 D3D11_COMPARISON_LESS,
88 D3D11_COMPARISON_EQUAL,
89 D3D11_COMPARISON_LESS_EQUAL,
90 D3D11_COMPARISON_GREATER,
91 D3D11_COMPARISON_NOT_EQUAL,
92 D3D11_COMPARISON_GREATER_EQUAL,
93 D3D11_COMPARISON_ALWAYS
unsigned int maxAnisotropy
#define CHECK_HR_RETURN_NONE(msg)
GraphicsObjectType GetType() const
static D3D11_COMPARISON_FUNC const msComparison[]
static D3D11_FILTER const msFilter[]
#define LogError(message)
Vector4< float > borderColor
ID3D11DeviceChild * mDXObject
static std::shared_ptr< GEObject > Create(void *device, GraphicsObject const *object)
DX11SamplerState(ID3D11Device *device, SamplerState const *samplerState)
static D3D11_TEXTURE_ADDRESS_MODE const msMode[]