| 200 | } |
| 201 | |
| 202 | void CreateSamplers() |
| 203 | { |
| 204 | // Create 1st sampler state with default settings |
| 205 | LLGL::SamplerDescriptor anisotropySamplerDesc; |
| 206 | { |
| 207 | anisotropySamplerDesc.maxAnisotropy = 8; |
| 208 | } |
| 209 | samplers[0] = renderer->CreateSampler(anisotropySamplerDesc); |
| 210 | |
| 211 | // Create 2nd sampler state with MIP-map bias |
| 212 | LLGL::SamplerDescriptor lodSamplerDesc; |
| 213 | { |
| 214 | lodSamplerDesc.mipMapLODBias = 3; |
| 215 | } |
| 216 | samplers[1] = renderer->CreateSampler(lodSamplerDesc); |
| 217 | |
| 218 | // Create 2nd sampler state with MIP-map bias |
| 219 | LLGL::SamplerDescriptor nearestSamplerDesc; |
| 220 | { |
| 221 | nearestSamplerDesc.minFilter = LLGL::SamplerFilter::Nearest; |
| 222 | nearestSamplerDesc.magFilter = LLGL::SamplerFilter::Nearest; |
| 223 | nearestSamplerDesc.minLOD = 4; |
| 224 | nearestSamplerDesc.maxLOD = 4; |
| 225 | } |
| 226 | samplers[2] = renderer->CreateSampler(nearestSamplerDesc); |
| 227 | } |
| 228 | |
| 229 | private: |
| 230 |
nothing calls this directly
no test coverage detected