MCPcopy Create free account
hub / github.com/LukasBanana/LLGL / CreateSamplers

Method CreateSamplers

examples/Cpp/Texturing/Example.cpp:202–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
229private:
230

Callers

nothing calls this directly

Calls 1

CreateSamplerMethod · 0.65

Tested by

no test coverage detected