Add D2DGeneratedShaderMarshallerAttribute type
このコミットが含まれているのは:
1 親
4ab55e8a30
コミット
0759ca9f2e
2ファイル変更
+24
-2
検索条件に一致するファイルはありません
@@ -15,8 +15,6 @@ namespace ComputeSharp.D2D1;
|
||||
/// </code>
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// Note that the <see cref="D2D1CompileOptions.PackMatrixRowMajor"/> is always enabled automatically and does not need to be
|
||||
/// specified. This option is mandatory, as the generated code to load the constant buffer from a shader assumes the layout
|
||||
/// for matrix types is row major. For the same reason, using <see cref="D2D1CompileOptions.PackMatrixColumnMajor"/> is not
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace ComputeSharp.D2D1;
|
||||
|
||||
/// <summary>
|
||||
/// An attribute that indicates that a given D2D1 shader should have its associated marshalling code being generated.
|
||||
/// <para>
|
||||
/// This attribute can be used on shader types that are declared as <see langword="partial"/>:
|
||||
/// <code>
|
||||
/// [D2DGeneratedShaderMarshaller]
|
||||
/// partial struct MyShader : ID2D1PixelShader
|
||||
/// {
|
||||
/// }
|
||||
/// </code>
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// When a shader is annotated with <see cref="D2DGeneratedShaderMarshallerAttribute"/>, the source generator will also add
|
||||
/// <see cref="Descriptors.ID2D1PixelShaderDescriptor{T}"/> to its implemented interfaces, and implement its APIs automatically.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Struct, AllowMultiple = false)]
|
||||
public sealed class D2DGeneratedShaderMarshallerAttribute : Attribute
|
||||
{
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする