Use concrete types for all generator mapping fields
このコミットが含まれているのは:
1 親
4cf19792a5
コミット
f8f2e9c1e6
11ファイル変更
+79
-80
検索条件に一致するファイルはありません
@@ -6,9 +6,9 @@ namespace ComputeSharp.SourceGeneration.Mappings;
|
||||
partial class HlslKnownMethods
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
private static partial IReadOnlyDictionary<string, string?> BuildKnownResourceSamplers()
|
||||
private static partial Dictionary<string, string?> BuildKnownResourceSamplers()
|
||||
{
|
||||
return new Dictionary<string, string?>
|
||||
return new()
|
||||
{
|
||||
[$"ComputeSharp.ReadOnlyTexture1D`2.Sample({typeof(float).FullName})"] = null,
|
||||
[$"ComputeSharp.IReadOnlyTexture1D`1.Sample({typeof(float).FullName})"] = null,
|
||||
|
||||
@@ -9,9 +9,9 @@ namespace ComputeSharp.SourceGeneration.Mappings;
|
||||
partial class HlslKnownProperties
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
private static partial IReadOnlyDictionary<string, string> BuildKnownResourceIndexers()
|
||||
private static partial Dictionary<string, string> BuildKnownResourceIndexers()
|
||||
{
|
||||
return new Dictionary<string, string>
|
||||
return new()
|
||||
{
|
||||
[$"ComputeSharp.ReadOnlyTexture2D`1.this[{typeof(int).FullName}, {typeof(int).FullName}]"] = "int2",
|
||||
[$"ComputeSharp.ReadOnlyTexture2D`2.this[{typeof(int).FullName}, {typeof(int).FullName}]"] = "int2",
|
||||
@@ -33,9 +33,9 @@ partial class HlslKnownProperties
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
private static partial IReadOnlyDictionary<string, (int Rank, int Axis)> BuildKnownSizeAccessors()
|
||||
private static partial Dictionary<string, (int Rank, int Axis)> BuildKnownSizeAccessors()
|
||||
{
|
||||
return new Dictionary<string, (int, int)>
|
||||
return new()
|
||||
{
|
||||
["ComputeSharp.Resources.Buffer`1.Length"] = (2, 0),
|
||||
["ComputeSharp.Resources.Texture1D`1.Width"] = (1, 0),
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする