ピクセルシェーダー実行契約を追加
このコミットが含まれているのは:
5ファイル変更
+61
検索条件に一致するファイルはありません
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace LuaScript
|
||||
{
|
||||
internal interface IPixelShaderRunner
|
||||
{
|
||||
PixelShaderRunStatus TryRun(
|
||||
string hlsl,
|
||||
string entryPoint,
|
||||
ReadOnlySpan<PixelShaderInput> resources,
|
||||
ReadOnlySpan<float> constants,
|
||||
PixelShaderBlend blend,
|
||||
PixelShaderSampler sampler,
|
||||
byte[] target,
|
||||
int targetWidth,
|
||||
int targetHeight,
|
||||
out string? error);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace LuaScript
|
||||
{
|
||||
internal enum PixelShaderBlend
|
||||
{
|
||||
Copy,
|
||||
Mask,
|
||||
Draw,
|
||||
Add,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace LuaScript
|
||||
{
|
||||
internal readonly record struct PixelShaderInput(byte[]? Data, int Width, int Height)
|
||||
{
|
||||
public const int RandomSize = 256;
|
||||
|
||||
public static PixelShaderInput Random { get; } = new(null, RandomSize, RandomSize);
|
||||
|
||||
public bool IsRandom => Data is null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace LuaScript
|
||||
{
|
||||
internal enum PixelShaderRunStatus
|
||||
{
|
||||
Success,
|
||||
Unavailable,
|
||||
CompileError,
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace LuaScript
|
||||
{
|
||||
internal enum PixelShaderSampler
|
||||
{
|
||||
None,
|
||||
Clip,
|
||||
Clamp,
|
||||
Loop,
|
||||
Mirror,
|
||||
Dot,
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする