载入中...
搜索中...
未找到
IRayTracing.h
浏览该文件的文档.
53 [[nodiscard]] virtual Result<void> applyReflections(Graphics* gfx, Texture* sceneColor, Texture* hwDepth,
72 [[nodiscard]] virtual Result<uint32_t> addTriangleMesh(const float* positionsXYZ, int vertexCount,
Move-only, checked operation results for the common layer.
Definition Graphics.h:125
Optional hardware ray-tracing backend (Vulkan KHR RT).
Definition IRayTracing.h:26
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:90
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...
GPU texture created via Graphics::newTexture. Owns GPU resources through an opaque backend handle.
Definition Texture.h:18
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition Animation.h:25
@ Graphics
Hardware ray-tracing capabilities probed once at Vulkan device creation.
Definition RayTracingCaps.h:16