예제 #1
0
 private void UpdateShaderResources(ParameterManager paramManager)
 {
     if (DesiredState.Shader.State != null)
     {
         foreach (var tex in DesiredState.Shader.State.Textures)
         {
             DesiredState.Resources.SetState(tex.Key, paramManager.GetSRVParameter(tex.Value));
         }
         foreach (var sampler in DesiredState.Shader.State.Samplers)
         {
             DesiredState.Samplers.SetState(sampler.Key, paramManager.GetSamplerStateParameter(sampler.Value));
         }
     }
 }