Make ID2D1Shader.GetInputType branchless
このコミットが含まれているのは:
1 親
e7c4288adf
コミット
245c308ad1
5ファイル変更
+29
-29
検索条件に一致するファイルはありません
+2
-2
@@ -24,12 +24,12 @@ partial class ID2D1ShaderGenerator
|
||||
{
|
||||
// This code produces a method declaration as follows:
|
||||
//
|
||||
// readonly byte global::ComputeSharp.D2D1.__Internals.ID2D1Shader.GetInputCount()
|
||||
// readonly uint global::ComputeSharp.D2D1.__Internals.ID2D1Shader.GetInputCount()
|
||||
// {
|
||||
// return <INPUT_COUNT>;
|
||||
// }
|
||||
return
|
||||
MethodDeclaration(PredefinedType(Token(SyntaxKind.ByteKeyword)), Identifier("GetInputCount"))
|
||||
MethodDeclaration(PredefinedType(Token(SyntaxKind.UIntKeyword)), Identifier("GetInputCount"))
|
||||
.WithExplicitInterfaceSpecifier(ExplicitInterfaceSpecifier(IdentifierName($"global::ComputeSharp.D2D1.__Internals.{nameof(ID2D1Shader)}")))
|
||||
.AddModifiers(Token(SyntaxKind.ReadOnlyKeyword))
|
||||
.WithBody(Block(ReturnStatement(LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(inputCount)))));
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする