private static void UpdateUnorderedAccessView(GraphicsDevice graphicsDevice, ref EffectParameterResourceData binding, ShaderParameterUpdater parameterUpdater) { var unorderedAccessView = (GraphicsResource)parameterUpdater.GetObject(binding.Param.KeyIndex); graphicsDevice.SetUnorderedAccessView(binding.Stage, binding.SlotStart, unorderedAccessView); }
private static void UpdateSampler(GraphicsDevice graphicsDevice, ref EffectParameterResourceData binding, ShaderParameterUpdater parameterUpdater) { var samplerState = (SamplerState)parameterUpdater.GetObject(binding.Param.KeyIndex); graphicsDevice.SetSamplerState(binding.Stage, binding.SlotStart, samplerState); }