修复 LUT 浏览器帧比例和会话内排序
这个提交包含在:
1 父节点
5c0f177bde
当前提交
b7c2e291ec
18 个文件已更改
+205
-139
没有与搜索条件相匹配的文件
@@ -335,15 +335,14 @@ kernel void dyInputAnalysis(texture2d<half> source [[texture(0)]],
|
||||
outRGBA[pixel.y*320+pixel.x]=dyInputPreviewPixel(source,inputLUT,inputStrength,(float2(pixel)+.5f)/float2(320,180),true);
|
||||
}
|
||||
|
||||
#include "DYLookPreview.h"
|
||||
kernel void dyInputHighPreview(texture2d<half> source [[texture(0)]],
|
||||
kernel void dyInputLookPreview(texture2d<half> source [[texture(0)]],
|
||||
texture3d<float> inputLUT [[texture(1)]], device float4* outRGBA [[buffer(0)]],
|
||||
constant float& inputStrength [[buffer(1)]],constant uint& flip [[buffer(2)]],
|
||||
constant float& inputStrength [[buffer(1)]],constant uint4& geometry [[buffer(2)]],
|
||||
uint2 pixel [[thread_position_in_grid]]) {
|
||||
constexpr uint2 size(DYLookPreviewHDWidth,DYLookPreviewHDHeight);
|
||||
uint2 size=geometry.xy;
|
||||
if(any(pixel>=size))return;
|
||||
uint2 sample=uint2(pixel.x,flip?size.y-1-pixel.y:pixel.y);
|
||||
outRGBA[pixel.y*size.x+pixel.x]=dyInputPreviewPixel(source,inputLUT,inputStrength,(float2(sample)+.5f)/float2(size),false);
|
||||
uint2 sample=uint2(pixel.x,geometry.z?size.y-1-pixel.y:pixel.y);
|
||||
outRGBA[pixel.y*size.x+pixel.x]=dyInputPreviewPixel(source,inputLUT,inputStrength,(float2(sample)+.5f)/float2(size),geometry.w!=0);
|
||||
}
|
||||
|
||||
// CST/BASIS arithmetic is reused verbatim from the versioned dayu-cst source.
|
||||
|
||||
在新工单中引用
屏蔽一个用户