UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

124 lines (122 loc) 3.52 kB
/** * Logs a frame number. * * @category Debug */ const TRACEID_RENDER_FRAME = 'RenderFrame'; /** * Logs a frame time. * * @category Debug */ const TRACEID_RENDER_FRAME_TIME = 'RenderFrameTime'; /** * Logs basic information about generated render passes. * * @category Debug */ const TRACEID_RENDER_PASS = 'RenderPass'; /** * Logs additional detail for render passes. * * @category Debug */ const TRACEID_RENDER_PASS_DETAIL = 'RenderPassDetail'; /** * Logs render actions created by the layer composition. Only executes when the * layer composition changes. * * @category Debug */ const TRACEID_RENDER_ACTION = 'RenderAction'; /** * Logs the allocation of render targets. * * @category Debug */ const TRACEID_RENDER_TARGET_ALLOC = 'RenderTargetAlloc'; /** * Logs the allocation of textures. * * @category Debug */ const TRACEID_TEXTURE_ALLOC = 'TextureAlloc'; /** * Logs the creation of shaders. * * @category Debug */ const TRACEID_SHADER_ALLOC = 'ShaderAlloc'; /** * Logs the compilation time of shaders. * * @category Debug */ const TRACEID_SHADER_COMPILE = 'ShaderCompile'; /** * Logs the vram use by the textures. * * @category Debug */ const TRACEID_VRAM_TEXTURE = 'VRAM.Texture'; /** * Logs the vram use by the vertex buffers. * * @category Debug */ const TRACEID_VRAM_VB = 'VRAM.Vb'; /** * Logs the vram use by the index buffers. * * @category Debug */ const TRACEID_VRAM_IB = 'VRAM.Ib'; /** * Logs the vram use by the storage buffers. * * @category Debug */ const TRACEID_VRAM_SB = 'VRAM.Sb'; /** * Logs the creation of bind groups. * * @category Debug */ const TRACEID_BINDGROUP_ALLOC = 'BindGroupAlloc'; /** * Logs the creation of bind group formats. * * @category Debug */ const TRACEID_BINDGROUPFORMAT_ALLOC = 'BindGroupFormatAlloc'; /** * Logs the creation of render pipelines. WebBPU only. * * @category Debug */ const TRACEID_RENDERPIPELINE_ALLOC = 'RenderPipelineAlloc'; /** * Logs the creation of compute pipelines. WebGPU only. * * @category Debug */ const TRACEID_COMPUTEPIPELINE_ALLOC = 'ComputePipelineAlloc'; /** * Logs the creation of pipeline layouts. WebBPU only. * * @category Debug */ const TRACEID_PIPELINELAYOUT_ALLOC = 'PipelineLayoutAlloc'; /** * Logs the internal debug information for Elements. * * @category Debug */ const TRACEID_ELEMENT = 'Element'; /** * Logs the vram use by all textures in memory. * * @category Debug */ const TRACEID_TEXTURES = 'Textures'; /** * Logs all assets in the asset registry. * * @category Debug */ const TRACEID_ASSETS = 'Assets'; /** * Logs the render queue commands. * * @category Debug */ const TRACEID_RENDER_QUEUE = 'RenderQueue'; /** * Logs the loaded GSplat resources for individual LOD levels of an octree. * * @category Debug */ const TRACEID_OCTREE_RESOURCES = 'OctreeResources'; /** * Logs the GPU timings. * * @category Debug */ const TRACEID_GPU_TIMINGS = 'GpuTimings'; export { TRACEID_ASSETS, TRACEID_BINDGROUPFORMAT_ALLOC, TRACEID_BINDGROUP_ALLOC, TRACEID_COMPUTEPIPELINE_ALLOC, TRACEID_ELEMENT, TRACEID_GPU_TIMINGS, TRACEID_OCTREE_RESOURCES, TRACEID_PIPELINELAYOUT_ALLOC, TRACEID_RENDERPIPELINE_ALLOC, TRACEID_RENDER_ACTION, TRACEID_RENDER_FRAME, TRACEID_RENDER_FRAME_TIME, TRACEID_RENDER_PASS, TRACEID_RENDER_PASS_DETAIL, TRACEID_RENDER_QUEUE, TRACEID_RENDER_TARGET_ALLOC, TRACEID_SHADER_ALLOC, TRACEID_SHADER_COMPILE, TRACEID_TEXTURES, TRACEID_TEXTURE_ALLOC, TRACEID_VRAM_IB, TRACEID_VRAM_SB, TRACEID_VRAM_TEXTURE, TRACEID_VRAM_VB };