surface_set_target_ext(index, surface_id);
参数 描述 index 渲染目标的索引 (从 0 到 3)。 surface_id 使用的表面ID。
Boolean(布尔值)
This function is for use with the Shader Functions and sets the MRT (0 - 3) for native level shaders (DX9, DX11, OpenGL).
注:由于储存在显存里,表面层运行时存在随时停止并退出的可能性。在直接引用它们之前,你需要 一直使用 surface_exists检测表面层是否退出。更多信息请查阅 表面层。
surface_set_target_ext(0, surf);
上述代码将渲染目标0到变量“surf”索引的表面层上。