Fix HLSL generation for early returns in pixel shaders
このコミットが含まれているのは:
1 親
9437fd971c
コミット
8241e56b55
3ファイル変更
+71
-16
検索条件に一致するファイルはありません
@@ -16,15 +16,15 @@ public static class ShaderCompiler
|
||||
/// <summary>
|
||||
/// Compiles a new HLSL shader from the input source code.
|
||||
/// </summary>
|
||||
/// <typeparam name="TLoadeer">The type of bytecode loader being used.</typeparam>
|
||||
/// <typeparam name="TLoader">The type of bytecode loader being used.</typeparam>
|
||||
/// <typeparam name="T">The type of shader being dispatched.</typeparam>
|
||||
/// <param name="loader">The <typeparamref name="TLoadeer"/> instance to use to load the bytecode.</param>
|
||||
/// <param name="loader">The <typeparamref name="TLoader"/> instance to use to load the bytecode.</param>
|
||||
/// <param name="threadsX">The number of threads in each thread group for the X axis.</param>
|
||||
/// <param name="threadsY">The number of threads in each thread group for the Y axis.</param>
|
||||
/// <param name="threadsZ">The number of threads in each thread group for the Z axis.</param>
|
||||
/// <param name="shader">The input <typeparamref name="T"/> instance representing the compute shader to run.</param>
|
||||
public static unsafe void LoadDynamicBytecode<TLoadeer, T>(ref TLoadeer loader, int threadsX, int threadsY, int threadsZ, in T shader)
|
||||
where TLoadeer : struct, IBytecodeLoader
|
||||
public static unsafe void LoadDynamicBytecode<TLoader, T>(ref TLoader loader, int threadsX, int threadsY, int threadsZ, in T shader)
|
||||
where TLoader : struct, IBytecodeLoader
|
||||
where T : struct, IShader
|
||||
{
|
||||
Unsafe.AsRef(in shader).BuildHlslString(out ArrayPoolStringBuilder builder, threadsX, threadsY, threadsZ);
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする