#include "Sampler.h" Sampler::Sampler(Graphics& gfx) { D3D11_SAMPLER_DESC samplerDesc = {}; samplerDesc.Filter = D3D11_FILTER_MIN_MAG_MIP_LINEAR; samplerDesc.AddressU = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.AddressV = D3D11_TEXTURE_ADDRESS_WRAP; samplerDesc.AddressW = D3D11_TEXTURE_ADDRESS_WRAP; GetDevice(gfx)->CreateSamplerState(&samplerDesc, &pSampler); } void Sampler::Bind(Graphics& gfx, Logger& logger) noexcept { GetContext(gfx)->PSSetSamplers(0, 1, pSampler.GetAddressOf()); }