From 9195e445b2473564563c917df611fcca4ea161d1 Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Thu, 7 Mar 2024 14:29:13 -0800 Subject: [PATCH] update comments on compute bindings --- src/Graphics/Bindings/ComputeBufferBinding.cs | 6 +++--- src/Graphics/Bindings/ComputeTextureBinding.cs | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Graphics/Bindings/ComputeBufferBinding.cs b/src/Graphics/Bindings/ComputeBufferBinding.cs index f166972..d19cc01 100644 --- a/src/Graphics/Bindings/ComputeBufferBinding.cs +++ b/src/Graphics/Bindings/ComputeBufferBinding.cs @@ -9,12 +9,12 @@ namespace MoonWorks.Graphics /// /// Specifies data dependency behavior when this buffer is written to in the shader.
/// - /// SafeDiscard: + /// Cycle: /// If this buffer has been used in commands that have not finished, - /// this option will prevent a dependency on those commands + /// the implementation may choose to prevent a dependency on those commands /// at the cost of increased memory usage. /// You may NOT assume that any of the previous data is retained. - /// Otherwise this option is equivalent to SafeOverwrite.
+ /// This may prevent stalls when frequently updating a resource.
/// /// SafeOverwrite: /// Overwrites the data safely using a GPU memory barrier. diff --git a/src/Graphics/Bindings/ComputeTextureBinding.cs b/src/Graphics/Bindings/ComputeTextureBinding.cs index 99219bf..4baa158 100644 --- a/src/Graphics/Bindings/ComputeTextureBinding.cs +++ b/src/Graphics/Bindings/ComputeTextureBinding.cs @@ -9,12 +9,12 @@ namespace MoonWorks.Graphics /// /// Specifies data dependency behavior when this texture is written to in the shader.
/// - /// SafeDiscard: - /// If this texture slice has been used in commands that have not finished, - /// this option will prevent a dependency on those commands + /// Cycle: + /// If this buffer has been used in commands that have not finished, + /// the implementation may choose to prevent a dependency on those commands /// at the cost of increased memory usage. - /// You may NOT assume that any of the previous texture (not slice!) data is retained. - /// Otherwise this option is equivalent to SafeOverwrite.
+ /// You may NOT assume that any of the previous data is retained. + /// This may prevent stalls when frequently updating a resource.
/// /// SafeOverwrite: /// Overwrites the data safely using a GPU memory barrier.