From 2d83875f4b376f047c4541a6f6c13d36e5aa228b Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 18 Sep 2024 13:46:20 -0700 Subject: Add `IRWArray` interface, and make StructuredBuffer conform to them. (#5097) * Add `IRWArray` interface, and make StructuredBuffer conform to them. * Update user guide. * Fix. * Fixes. --- docs/user-guide/06-interfaces-generics.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/user-guide/06-interfaces-generics.md b/docs/user-guide/06-interfaces-generics.md index df51ac950..3d35d2bf5 100644 --- a/docs/user-guide/06-interfaces-generics.md +++ b/docs/user-guide/06-interfaces-generics.md @@ -1036,7 +1036,8 @@ Slang supports the following builtin interfaces: - `IInteger`, represents a logical integer that supports both `IArithmetic` and `ILogical` operations. Implemented by all builtin integer scalar types. - `IDifferentiable`, represents a value that is differentiable. - `IFloat`, represents a logical float that supports both `IArithmetic`, `ILogical` and `IDifferentiable` operations. Also provides methods to convert to and from `float`. Implemented by all builtin floating-point scalar, vector and matrix types. -- `IArray`, represents a logical array that supports retrieving an element of type `T` from an index. Implemented by array types, vectors and matrices. +- `IArray`, represents a logical array that supports retrieving an element of type `T` from an index. Implemented by array types, vectors, matrices and `StructuredBuffer`. +- `IRWArray`, represents a logical array whose elements are mutable. Implemented by array types, vectors, matrices, `RWStructuredBuffer` and `RasterizerOrderedStructuredBuffer`. - `IFunc` represent a callable object (with `operator()`) that returns `TResult` and takes `TParams...` as argument. - `IMutatingFunc`, similar to `IFunc`, but the `operator()` method is `[mutating]`. - `IDifferentiableFunc`, similar to `IFunc`, but the `operator()` method is `[Differentiable]`. -- cgit v1.2.3