XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFE.SpaceEngineers.AgentBridge

【SpaceEngineer】AI调试插件

公开
关注 0 Fork 0 Star 0
UTF-8
// Copy the engine's current SRV, including its sRGB decoding, entirely on GPU.
Texture2D<float4> source : register(t0);
RWTexture2D<float4> target : register(u0);
[numthreads(8,8,1)]
void CopyScreen(uint3 id:SV_DispatchThreadID) {
    uint w,h;target.GetDimensions(w,h);
    if(id.x<w && id.y<h) target[id.xy]=source.Load(int3(id.xy,0));
}