载入中...
搜索中...
未找到
IRayTracing.h
浏览该文件的文档.
53 [[nodiscard]] virtual Result<PathSceneToken> preparePathScene(Graphics* gfx, const PathSceneDescription& scene) = 0;
77 [[nodiscard]] virtual Result<void> renderPaths(PathSceneToken token, Canvas* dest, const PathTraceView& view) = 0;
85 [[nodiscard]] virtual Result<PathFrameToken> preparePathFrame(PathSceneToken scene, uint32_t width,
96 [[nodiscard]] virtual Result<Texture*> recordPathFrame(PathSceneToken scene, PathFrameToken output,
113 [[nodiscard]] virtual Result<void> applyReflections(Graphics* gfx, Texture* sceneColor, Texture* hwDepth,
132 [[nodiscard]] virtual Result<uint32_t> addTriangleMesh(const float* positionsXYZ, int vertexCount,
Move-only, checked operation results for the common layer.
Definition Graphics.h:134
Optional hardware ray-tracing backend (Vulkan KHR RT).
Definition IRayTracing.h:28
virtual Result< PathFrameToken > preparePathFrame(PathSceneToken scene, uint32_t width, uint32_t height)=0
Prepare provider-owned output images for normal-frame path tracing. @ownership Provider owns output i...
virtual Result< void > renderPaths(PathSceneToken token, Canvas *dest, const PathTraceView &view)=0
Render a prepared path-tracing sample batch into an HDR canvas.
virtual Result< void > applyReflections(Graphics *gfx, Texture *sceneColor, Texture *hwDepth, Texture *worldNormal, Canvas *dest, const glm::mat4 &invViewProj, const glm::mat4 &viewProj, const glm::vec3 &eyeWorld)=0
Trace mirror-style reflections into dest (RGBA16F, A = hit mask).
virtual void detachFromGraphics()
Release device-owned RT resources before Graphics destroys the device. @thread Render thread only; sa...
Definition IRayTracing.h:150
virtual bool isAvailable() const =0
True when the active Graphics device enabled the KHR RT path.
virtual Result< uint32_t > addTriangleMesh(const float *positionsXYZ, int vertexCount, const uint32_t *indices, int indexCount, const glm::mat4 &transform)=0
Register a triangle mesh instance for ray tracing.
virtual Result< void > rebuildScene()=0
Rebuild the TLAS from meshes previously registered with the scene.
virtual RayTracingCaps caps() const =0
Borrowed device caps; valid while Graphics remains initialized.
virtual void clearScene()=0
Drop every registered mesh and acceleration structure.
virtual Result< uint32_t > addMesh(Mesh *mesh, const glm::mat4 &transform)=0
Register a GPU Mesh already uploaded by Graphics. @ownership mesh is borrowed for the call; vertex/in...
virtual Result< Texture * > recordPathFrame(PathSceneToken scene, PathFrameToken output, const PathTraceView &view)=0
End the scene pass and record one path batch as this normal frame's HDR resolve source....
virtual Result< PathSceneToken > preparePathScene(Graphics *gfx, const PathSceneDescription &scene)=0
Prepare an independently owned path-tracing scene and publish it atomically.
virtual Result< PathSceneToken > updatePathInstances(PathSceneToken token, std::span< const PathInstance > instances)=0
Replace instances of a prepared geometry set without rebuilding its BLAS.
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:15
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
@ Graphics
Provider-owned frame output identity; invalidated by resize, scene replacement or device detach.
Definition PathTracing.h:135
Borrowed scene snapshot; preparation copies all inputs into provider-owned resources....
Definition PathTracing.h:119
Opaque prepared-scene identity; invalid after replacement or device detachment. @ownership Does not o...
Definition PathTracing.h:130
Deterministic path sample batch. Zero history starts a new accumulation.
Definition PathTracing.h:146
Hardware ray-tracing capabilities probed once at Vulkan device creation.
Definition RayTracingCaps.h:16