Added new HLSL vector types to known types mapping
このコミットが含まれているのは:
1 親
4ff03cf1e4
コミット
068eaef843
1ファイル変更
+25
-1
@@ -26,6 +26,18 @@ namespace ComputeSharp.Shaders.Mappings
|
||||
[typeof(Vector3).FullName] = "float3",
|
||||
[typeof(Vector4).FullName] = "float4",
|
||||
[typeof(ThreadIds).FullName] = "uint3",
|
||||
[typeof(Int2).FullName] = "int2",
|
||||
[typeof(Int3).FullName] = "int3",
|
||||
[typeof(Int4).FullName] = "int4",
|
||||
[typeof(UInt2).FullName] = "uint2",
|
||||
[typeof(UInt3).FullName] = "uint3",
|
||||
[typeof(UInt4).FullName] = "uint4",
|
||||
[typeof(Float2).FullName] = "float2",
|
||||
[typeof(Float3).FullName] = "float3",
|
||||
[typeof(Float4).FullName] = "float4",
|
||||
[typeof(Double2).FullName] = "double2",
|
||||
[typeof(Double3).FullName] = "double3",
|
||||
[typeof(Double4).FullName] = "double4",
|
||||
[typeof(ReadOnlyBuffer<>).FullName] = "StructuredBuffer",
|
||||
[typeof(ReadWriteBuffer<>).FullName] = "RWStructuredBuffer"
|
||||
};
|
||||
@@ -50,7 +62,19 @@ namespace ComputeSharp.Shaders.Mappings
|
||||
[Pure]
|
||||
public static bool IsKnownVectorType(Type type) => type == typeof(Vector2) ||
|
||||
type == typeof(Vector3) ||
|
||||
type == typeof(Vector4);
|
||||
type == typeof(Vector4) ||
|
||||
type == typeof(Int2) ||
|
||||
type == typeof(Int3) ||
|
||||
type == typeof(Int4) ||
|
||||
type == typeof(UInt2) ||
|
||||
type == typeof(UInt3) ||
|
||||
type == typeof(UInt4) ||
|
||||
type == typeof(Float2) ||
|
||||
type == typeof(Float3) ||
|
||||
type == typeof(Float4) ||
|
||||
type == typeof(Double2) ||
|
||||
type == typeof(Double3) ||
|
||||
type == typeof(Double4);
|
||||
|
||||
/// <summary>
|
||||
/// Checks whether or not the input type is a <see cref="ConstantBuffer{T}"/> value
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする