public IndirectArgument(PipelineType pipeline, CameraType camera, bool hasTransparency, Vector3 location, string binding, IndirectDrawIndexedArguments arguments)
 {
     Pipeline        = pipeline;
     Camera          = camera;
     HasTransparency = hasTransparency;
     Location        = location;
     Binding         = binding;
     Arguments       = arguments;
 }
Exemple #2
0
 public void Update(long offset, IndirectDrawIndexedArguments arguments)
 {
     if (UseFallback)
     {
         _arguments[offset / ArgSize] = arguments;
     }
     else
     {
         _device.UpdateBuffer(_deviceBuffer, (uint)offset, arguments);
     }
 }