Lines Matching refs:sampler
41 for(int sampler = 0; sampler < 16 + 4; sampler++) in Direct3DStateBlock9() local
43 texture[sampler] = 0; in Direct3DStateBlock9()
176 for(int sampler = 0; sampler < 16 + 4; sampler++) in Apply() local
180 if(samplerStateCaptured[sampler][state]) in Apply()
182 int index = sampler < 16 ? sampler : D3DVERTEXTEXTURESAMPLER0 + (sampler - 16); in Apply()
183 device->SetSamplerState(index, (D3DSAMPLERSTATETYPE)state, samplerState[sampler][state]); in Apply()
201 for(int sampler = 0; sampler < 16 + 4; sampler++) in Apply() local
203 if(textureCaptured[sampler]) in Apply()
205 int index = sampler < 16 ? sampler : D3DVERTEXTEXTURESAMPLER0 + (sampler - 16); in Apply()
206 device->SetTexture(index, texture[sampler]); in Apply()
396 for(int sampler = 0; sampler < 16 + 4; sampler++) in Capture() local
400 if(samplerStateCaptured[sampler][state]) in Capture()
402 int index = sampler < 16 ? sampler : D3DVERTEXTEXTURESAMPLER0 + (sampler - 16); in Capture()
403 device->GetSamplerState(index, (D3DSAMPLERSTATETYPE)state, &samplerState[sampler][state]); in Capture()
435 for(int sampler = 0; sampler < 16 + 4; sampler++) in Capture() local
437 if(textureCaptured[sampler]) in Capture()
440 int index = sampler < 16 ? sampler : D3DVERTEXTEXTURESAMPLER0 + (sampler - 16); in Capture()
449 if(this->texture[sampler]) in Capture()
451 this->texture[sampler]->unbind(); in Capture()
454 this->texture[sampler] = texture; in Capture()
711 unsigned int sampler = index < 16 ? index : (index - D3DVERTEXTEXTURESAMPLER0) + 16; in setSamplerState() local
713 if(sampler >= 16 + 4) in setSamplerState()
718 samplerStateCaptured[sampler][state] = true; in setSamplerState()
719 samplerState[sampler][state] = value; in setSamplerState()
747 unsigned int sampler = index < 16 ? index : (index - D3DVERTEXTEXTURESAMPLER0) + 16; in setTexture() local
749 if(sampler >= 16 + 4) in setTexture()
755 if(this->texture[sampler]) this->texture[sampler]->unbind(); in setTexture()
757 textureCaptured[sampler] = true; in setTexture()
758 this->texture[sampler] = texture; in setTexture()
835 for(int sampler = 0; sampler < 16 + 4; sampler++) in clear() local
839 samplerStateCaptured[sampler][state] = false; in clear()
849 for(int sampler = 0; sampler < 16 + 4; sampler++) in clear() local
851 textureCaptured[sampler] = false; in clear()
940 for(int sampler = 0; sampler < 16 + 4; sampler++) in clear() local
942 if(texture[sampler]) in clear()
944 texture[sampler]->unbind(); in clear()
945 texture[sampler] = 0; in clear()
977 unsigned int sampler = 16 + (index - D3DVERTEXTEXTURESAMPLER0); in captureSamplerState() local
979 device->GetSamplerState(index, state, &samplerState[sampler][state]); in captureSamplerState()
980 samplerStateCaptured[sampler][state] = true; in captureSamplerState()
1087 for(int sampler = 0; sampler <= D3DVERTEXTEXTURESAMPLER3; sampler++) in capturePixelSamplerStates() local
1089 captureSamplerState(sampler, D3DSAMP_ADDRESSU); in capturePixelSamplerStates()
1090 captureSamplerState(sampler, D3DSAMP_ADDRESSV); in capturePixelSamplerStates()
1091 captureSamplerState(sampler, D3DSAMP_ADDRESSW); in capturePixelSamplerStates()
1092 captureSamplerState(sampler, D3DSAMP_BORDERCOLOR); in capturePixelSamplerStates()
1093 captureSamplerState(sampler, D3DSAMP_MAGFILTER); in capturePixelSamplerStates()
1094 captureSamplerState(sampler, D3DSAMP_MINFILTER); in capturePixelSamplerStates()
1095 captureSamplerState(sampler, D3DSAMP_MIPFILTER); in capturePixelSamplerStates()
1096 captureSamplerState(sampler, D3DSAMP_MIPMAPLODBIAS); in capturePixelSamplerStates()
1097 captureSamplerState(sampler, D3DSAMP_MAXMIPLEVEL); in capturePixelSamplerStates()
1098 captureSamplerState(sampler, D3DSAMP_MAXANISOTROPY); in capturePixelSamplerStates()
1099 captureSamplerState(sampler, D3DSAMP_SRGBTEXTURE); in capturePixelSamplerStates()
1100 captureSamplerState(sampler, D3DSAMP_ELEMENTINDEX); in capturePixelSamplerStates()
1171 for(int sampler = 0; sampler <= D3DVERTEXTEXTURESAMPLER3; sampler++) in captureVertexSamplerStates() local
1173 captureSamplerState(sampler, D3DSAMP_DMAPOFFSET); in captureVertexSamplerStates()
1253 for(int sampler = 0; sampler < 16 + 4; sampler++) in captureTextures() local
1255 textureCaptured[sampler] = true; in captureTextures()
1256 int index = sampler < 16 ? sampler : D3DVERTEXTEXTURESAMPLER0 + (sampler - 16); in captureTextures()
1257 device->GetTexture(index, reinterpret_cast<IDirect3DBaseTexture9**>(&texture[sampler])); in captureTextures()
1259 if(texture[sampler]) in captureTextures()
1261 texture[sampler]->bind(); in captureTextures()
1262 texture[sampler]->Release(); in captureTextures()