From 8b89c5b694f3d8ab3adc02fac659bc81cf36d85d Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 19 Dec 2021 22:32:27 +0100 Subject: [PATCH] Update XML docs for [EmbeddedBytecode] --- .../Attributes/EmbeddedBytecodeAttribute.cs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/ComputeSharp/Core/Attributes/EmbeddedBytecodeAttribute.cs b/src/ComputeSharp/Core/Attributes/EmbeddedBytecodeAttribute.cs index 448cf883..f980a118 100644 --- a/src/ComputeSharp/Core/Attributes/EmbeddedBytecodeAttribute.cs +++ b/src/ComputeSharp/Core/Attributes/EmbeddedBytecodeAttribute.cs @@ -15,16 +15,20 @@ namespace ComputeSharp; /// /// /// +/// +/// The runtime compilation will automatically be skipped if the shader is invoked using matching thread count values, +/// otherwise the usual runtime compilation will be used as fallback if the ComputeSharp.Dynamic library is +/// referenced. If not, will be thrown when trying to dispatch the shader. +/// +/// +/// +/// Using this attribute is mandatory when not referencing ComputeSharp.Dynamic. +/// +/// /// This attribute can only be used when the shader type being annotated does not require dynamic /// features. Specifically, this attribute is not supported if the shader captures any delegates. /// -/// The runtime compilation will automatically be skipped if the shader is invoked using matching -/// thread count values, otherwise the usual runtime compilation will be used as fallback. In case -/// the fallback support is not needed and all shaders in use are being precompiled, it is possible -/// to skip bundling the native dxcompiler.dll and dxil.dll libraries included with -/// ComputeSharp entirely, resulting in a smaller binary size in consuming applications. To do this, -/// the PackageReference item for the library should be annotated with ExcludeAssets="native". -/// +/// [AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)] public sealed class EmbeddedBytecodeAttribute : Attribute {