载入中...
搜索中...
未找到
GpuParticles.h
浏览该文件的文档.
154 [[nodiscard]] virtual bool updateGpuParticleEmitter(GpuParticleHandle handle, const GpuParticleUpdate& update,
161 [[nodiscard]] virtual bool drawGpuParticleEmitter(GpuParticleHandle handle, const GpuParticleDraw& draw) = 0;
Resident GPU particle surface kept off the high-fanout Graphics facade.
Definition GpuParticles.h:130
virtual void releaseGpuParticleEmitter(GpuParticleHandle handle)=0
Release a GPU particle emitter. Explicit release may wait for in-flight frames.
virtual void resetGpuParticleEmitter(GpuParticleHandle handle)=0
Clear resident state before the next submitted frame.
virtual bool drawGpuParticleEmitter(GpuParticleHandle handle, const GpuParticleDraw &draw)=0
Queue an indirect draw at the current 2D overlay position. @compatibility Preserves the established G...
virtual GpuParticleStats getGpuParticleStats(GpuParticleHandle handle) const =0
Return the latest fence-complete counters without waiting on the GPU.
virtual bool updateGpuParticleEmitter(GpuParticleHandle handle, const GpuParticleUpdate &update, const GpuParticleSpawn *spawns, std::uint32_t spawnCount)=0
Upload one simulation step and optional spawn commands. @compatibility Preserves the established GPU-...
virtual GpuParticleHandle createGpuParticleEmitter(std::uint32_t capacity)=0
Allocate backend-owned resident state for one particle emitter.
virtual bool canSubmitGpuParticles() const =0
True when the current frame topology can accept a GPU particle compute section.
virtual bool supportsGpuParticles() const =0
True when this backend supports resident compute + indirect particle draws.
virtual ~IGpuParticles()=default
Releases IGpuParticles resources.
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
std::uint64_t GpuParticleHandle
Opaque backend-owned GPU particle emitter handle.
Definition GpuParticles.h:36
constexpr GpuParticleHandle kInvalidGpuParticleHandle
Invalid GPU particle handle returned when the backend cannot allocate the resource.
Definition GpuParticles.h:39
GpuParticleFacingMode
Sprite orientation supported by the resident GPU particle renderer.
Definition GpuParticles.h:12
@ ParticleRotation
@ Ribbon
Connect birth-ordered neighbors into ribbon segments.
GpuParticleSortMode
Transparent ordering for the resident GPU particle renderer.
Definition GpuParticles.h:27
@ Alpha
Parameters for rendering a resident GPU particle emitter.
Definition GpuParticles.h:83
float ribbonMinSegmentLength
Definition GpuParticles.h:102
float axisRotationRadians
Definition GpuParticles.h:99
GPU particle state uploaded only for newly spawned particles.
Definition GpuParticles.h:42
float birthSerial
Monotonic birth serial (uintBitsToFloat) for future ribbon ordering.
Definition GpuParticles.h:59
Delayed non-blocking counters from a resident GPU emitter.
Definition GpuParticles.h:113
std::uint64_t submittedFrames
Definition GpuParticles.h:120
std::uint32_t instances
Instance count written into the most recently completed indirect command.
Definition GpuParticles.h:116
Parameters for one resident GPU simulation step.
Definition GpuParticles.h:65