feat: add vertical canvas editors and host-owned scopes LUT workspace; boundary review in progress
这个提交包含在:
1 父节点
0dfb838b39
当前提交
031c704f0f
29 个文件已更改
+1062
-234
没有与搜索条件相匹配的文件
@@ -272,6 +272,18 @@ kernel void dyAnalysis(texture2d<half> source [[texture(0)]],
|
||||
outRGBA[pixel.y * 320 + pixel.x] = float4(encoded, float(sample.a));
|
||||
}
|
||||
|
||||
// Sample the actual final host destination before returning its tile. Point
|
||||
// sampling avoids blending away nonfinite/out-of-range pixels. This is a
|
||||
// bounded display-reference sample, not a full-resolution precision scope.
|
||||
kernel void dyScopeSample(texture2d<float,access::read> source [[texture(0)]],
|
||||
device float4* outRGBA [[buffer(0)]],constant uint& flip [[buffer(1)]],
|
||||
uint2 pixel [[thread_position_in_grid]]) {
|
||||
if(pixel.x>=320||pixel.y>=180)return;
|
||||
uint2 xy=min(uint2((float2(pixel)+.5f)*float2(source.get_width(),source.get_height())/float2(320,180)),uint2(source.get_width()-1,source.get_height()-1));
|
||||
if(flip)xy.y=source.get_height()-1-xy.y;
|
||||
outRGBA[pixel.y*320+pixel.x]=source.read(xy);
|
||||
}
|
||||
|
||||
// Native auto-grade statistics consume the input-converted RGB8 preview.
|
||||
// Quantization before and after the LUT mirrors the reference NSImage path.
|
||||
kernel void dyInputAnalysis(texture2d<half> source [[texture(0)]],
|
||||
|
||||
在新工单中引用
屏蔽一个用户