Lines Matching defs:Sampler

2906  * Get / Set Sampler States
2910 static HRESULT WINAPI IWineD3DDeviceImpl_SetSamplerState(IWineD3DDevice *iface, DWORD Sampler, WINED3DSAMPLERSTATETYPE Type, DWORD Value) {
2914 TRACE("(%p) : Sampler %#x, Type %s (%#x), Value %#x\n",
2915 This, Sampler, debug_d3dsamplerstate(Type), Type, Value);
2917 if (Sampler >= WINED3DVERTEXTEXTURESAMPLER0 && Sampler <= WINED3DVERTEXTEXTURESAMPLER3) {
2918 Sampler -= (WINED3DVERTEXTEXTURESAMPLER0 - MAX_FRAGMENT_SAMPLERS);
2921 if (Sampler >= sizeof(This->stateBlock->samplerState)/sizeof(This->stateBlock->samplerState[0])) {
2922 ERR("Current Sampler overflows sampleState0 array (sampler %d)\n", Sampler);
2940 oldValue = This->stateBlock->samplerState[Sampler][Type];
2941 This->updateStateBlock->samplerState[Sampler][Type] = Value;
2942 This->updateStateBlock->changed.samplerState[Sampler] |= 1 << Type;
2955 IWineD3DDeviceImpl_MarkStateDirty(This, STATE_SAMPLER(Sampler));
2960 static HRESULT WINAPI IWineD3DDeviceImpl_GetSamplerState(IWineD3DDevice *iface, DWORD Sampler, WINED3DSAMPLERSTATETYPE Type, DWORD* Value) {
2963 TRACE("(%p) : Sampler %#x, Type %s (%#x)\n",
2964 This, Sampler, debug_d3dsamplerstate(Type), Type);
2966 if (Sampler >= WINED3DVERTEXTEXTURESAMPLER0 && Sampler <= WINED3DVERTEXTEXTURESAMPLER3) {
2967 Sampler -= (WINED3DVERTEXTEXTURESAMPLER0 - MAX_FRAGMENT_SAMPLERS);
2970 if (Sampler >= sizeof(This->stateBlock->samplerState)/sizeof(This->stateBlock->samplerState[0])) {
2971 ERR("Current Sampler overflows sampleState0 array (sampler %d)\n", Sampler);
2974 *Value = This->stateBlock->samplerState[Sampler][Type];
5268 WARN("Sampler state %u has minfilter D3DTEXF_NONE, returning D3DERR_UNSUPPORTEDTEXTUREFILTER\n", i);
5272 WARN("Sampler state %u has magfilter D3DTEXF_NONE, returning D3DERR_UNSUPPORTEDTEXTUREFILTER\n", i);