public void SetSamplers(DomainShaderType shaderType, int slot, SamplerState[] samplers) { if (slot < 0) { return; } int idx = SamplerCheckDomainShaderStartIdx + slot; bool needUpdate = false; for (int i = 0; i < samplers.Length; ++i) { if (SamplerStateCheck[idx + i] != samplers[i]) { needUpdate = true; break; } } if (needUpdate) { for (int i = 0; i < samplers.Length; ++i) { SamplerStateCheck[idx + i] = samplers[i]; } deviceContext.DomainShader.SetSamplers(slot, samplers); } }
public void SetShaderResources(DomainShaderType shaderType, int slot, ShaderResourceView[] texture) { if (slot < 0) { return; } deviceContext.DomainShader.SetShaderResources(slot, texture); }
public void SetSamplers(DomainShaderType shaderType, int slot, SamplerState[] samplers) { if (slot < 0) { return; } deviceContext.DomainShader.SetSamplers(slot, samplers); }
public void SetSampler(DomainShaderType shaderType, int slot, SamplerState sampler) { if (slot < 0) { return; } int idx = SamplerCheckDomainShaderStartIdx + slot; if (SamplerStateCheck[idx] != sampler) { SamplerStateCheck[idx] = sampler; deviceContext.DomainShader.SetSampler(slot, sampler); } }
public DomainShader GetShader(DomainShaderType type) { return(DomainShader); }
public SamplerState[] GetSampler(DomainShaderType shaderType, int startSlot, int num) { return(deviceContext.DomainShader.GetSamplers(startSlot, num)); }
public ShaderResourceView[] GetShaderResources(DomainShaderType shaderType, int startSlot, int num) { return(deviceContext.DomainShader.GetShaderResources(startSlot, num)); }