ピクセルシェーダー実行契約を追加

このコミットが含まれているのは:
routersys committed 2026-07-04 11:01:50 +09:00
1 親 deb94b3f29
コミット 2b5901379f
5ファイル変更
+61

検索条件に一致するファイルはありません

+19
ファイルの表示
@@ -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);
}
}
+10
ファイルの表示
@@ -0,0 +1,10 @@
namespace LuaScript
{
internal enum PixelShaderBlend
{
Copy,
Mask,
Draw,
Add,
}
}
+11
ファイルの表示
@@ -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;
}
}
+9
ファイルの表示
@@ -0,0 +1,9 @@
namespace LuaScript
{
internal enum PixelShaderRunStatus
{
Success,
Unavailable,
CompileError,
}
}
+12
ファイルの表示
@@ -0,0 +1,12 @@
namespace LuaScript
{
internal enum PixelShaderSampler
{
None,
Clip,
Clamp,
Loop,
Mirror,
Dot,
}
}