/// <summary> /// Sets the binding points for the uniform buffers bound on the compute pipeline. /// </summary> /// <param name="descriptors">Buffer descriptors with the binding point values</param> public void SetComputeUniformBufferBindings(ReadOnlyCollection <BufferDescriptor> descriptors) { _cpUniformBuffers.SetBindings(descriptors); }
/// <summary> /// Sets the binding points for the uniform buffers bound on the compute pipeline. /// </summary> /// <param name="descriptors">Buffer descriptors with the binding point values</param> public void SetComputeUniformBufferBindings(ReadOnlyCollection <BufferDescriptor> descriptors) { _cpUniformBuffers.SetBindings(descriptors); _cpUniformBufferBindings = descriptors.Count != 0 ? descriptors.Max(x => x.Binding) + 1 : 0; }
/// <summary> /// Sets the binding points for the storage buffers bound on the compute pipeline. /// </summary> /// <param name="descriptors">Buffer descriptors with the binding point values</param> public void SetComputeStorageBufferBindings(ReadOnlyCollection <BufferDescriptor> descriptors) { _cpStorageBuffers.SetBindings(descriptors); }