logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GPUSamplerCreateInfo - A structure specifying the parameters of a sampler.

Availability

       This function is available since SDL 3.2.0.

Description

       Note  that  mip_lod_bias  is a no-op for the Metal driver. For Metal, LOD bias must be applied via shader
       instead.

Name

       SDL_GPUSamplerCreateInfo - A structure specifying the parameters of a sampler.

See Also

SDL_CreateGPUSampler(3),              SDL_GPUFilter(3type),              SDL_GPUSamplerMipmapMode(3type),
       SDL_GPUSamplerAddressMode(3type), SDL_GPUCompareOp(3type)

Simple Directmedia Layer                           SDL 3.2.20                    SDL_GPUSamplerCreateInfo(3type)

Synopsis

#include<SDL3/SDL_gpu.h>typedefstructSDL_GPUSamplerCreateInfo{SDL_GPUFiltermin_filter;/**<Theminificationfiltertoapplytolookups.*/SDL_GPUFiltermag_filter;/**<Themagnificationfiltertoapplytolookups.*/SDL_GPUSamplerMipmapModemipmap_mode;/**<Themipmapfiltertoapplytolookups.*/SDL_GPUSamplerAddressModeaddress_mode_u;/**<TheaddressingmodeforUcoordinatesoutside[0,1).*/SDL_GPUSamplerAddressModeaddress_mode_v;/**<TheaddressingmodeforVcoordinatesoutside[0,1).*/SDL_GPUSamplerAddressModeaddress_mode_w;/**<TheaddressingmodeforWcoordinatesoutside[0,1).*/floatmip_lod_bias;/**<ThebiastobeaddedtomipmapLODcalculation.*/floatmax_anisotropy;/**<Theanisotropyvalueclampusedbythesampler.Ifenable_anisotropyisfalse,thisisignored.*/SDL_GPUCompareOpcompare_op;/**<Thecomparisonoperatortoapplytofetcheddatabeforefiltering.*/floatmin_lod;/**<ClampstheminimumofthecomputedLODvalue.*/floatmax_lod;/**<ClampsthemaximumofthecomputedLODvalue.*/boolenable_anisotropy;/**<truetoenableanisotropicfiltering.*/boolenable_compare;/**<truetoenablecomparisonagainstareferencevalueduringlookups.*/Uint8padding1;Uint8padding2;SDL_PropertiesIDprops;/**<ApropertiesIDforextensions.Shouldbe0ifnoextensionsareneeded.*/}SDL_GPUSamplerCreateInfo;

See Also