Bug fixes in the static methods loading
このコミットが含まれているのは:
1 親
ae5386cce8
コミット
590adf3c89
2ファイル変更
+12
-11
検索条件に一致するファイルはありません
@@ -39,6 +39,17 @@ cbuffer _{{FieldName}} : register(b{{BufferIndex}})
|
||||
{{/IsReadWriteBuffer}}
|
||||
{{/BuffersList}}
|
||||
|
||||
{{!Shader private functions}}
|
||||
{{#FunctionsList}}
|
||||
// {{FunctionCsharpReturnType}} {{FunctionFullName}}({{FunctionCsharpParameters}})
|
||||
{{ReturnType}} {{FunctionName}}(
|
||||
{{#ParametersList}}
|
||||
{{ParameterType}} {{ParameterName}} {{^IsLastParameter}},{{/IsLastParameter}}
|
||||
{{/ParametersList}}
|
||||
)
|
||||
{{FunctionBody}}
|
||||
{{/FunctionsList}}
|
||||
|
||||
{{!Shader entry point}}
|
||||
// Shader body
|
||||
[Shader("compute")]
|
||||
@@ -50,13 +61,3 @@ void CSMain(uint3 {{ThreadsIdsVariableName}} : SV_DispatchThreadId)
|
||||
{{ThreadsIdsVariableName}}.z < __z__) // Automatic bounds check
|
||||
{{&ShaderBody}}
|
||||
}
|
||||
|
||||
{{!Shader private functions}}
|
||||
{{#FunctionsList}}
|
||||
// {{FunctionCsharpReturnType}} {{FunctionFullName}}({{FunctionCsharpParameters}})
|
||||
{{ReturnType}} {{FunctionName}}(
|
||||
{{#ParametersList}}
|
||||
{{ParameterHlslType}} {{ParameterName}} {{^IsLastParameter}},{{/IsLastParameter}}
|
||||
{{/ParametersList}})
|
||||
{{FunctionBody}}
|
||||
{{/FunctionsList}}
|
||||
@@ -325,7 +325,7 @@ namespace ComputeSharp.Shaders.Translation
|
||||
// Get the final function info instance
|
||||
FunctionInfo functionInfo = new FunctionInfo(
|
||||
methodInfo.ReturnType,
|
||||
name,
|
||||
$"{methodInfo.DeclaringType.FullName}{Type.Delimiter}{methodInfo.Name}",
|
||||
string.Join(", ", methodInfo.GetParameters().Select(p => $"{p.ParameterType.ToFriendlyString()} {p.Name}")),
|
||||
root.ReturnType.ToFullString(),
|
||||
name,
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする