FfxBrixelizerScratchCounters

A structure containing the counters used by the Brixelizer context for each cascade update. This can be readback and used for analysis after each update. The following members contain useful information for analysing Brixelizer resource usage.

File location: sdk/include/FidelityFX/gpu/brixelizer/ffx_brixelizer_host_gpu_shared.h

Detailed description

A structure containing the counters used by the Brixelizer context for each cascade update. This can be readback and used for analysis after each update. The following members contain useful information for analysing Brixelizer resource usage.

triangles is used to store the total amount of storage space requested within the triangle buffer during an update. This is useful for determining a sensible value of triangleSwapSize in either FfxBrixelizerRawCascadeUpdateDescription or FfxBrixelizerUpdateDescription. references is used to store the total number of reference allocations requested by Brixelizer during an update. This is useful for determining a sensible value of maxReferences in either FfxBrixelizerRawCascadeUpdateDescription or FfxBrixelizerUpdateDescription. numBricksAllocated is used to store the number of brick allocations requested in an update. This is useful for determining a sensible value of maxBricksPerBake in either FfxBrixelizerRawCascadeUpdateDescription or FfxBrixelizerUpdateDescription.

The following counters are used internally by Brixelizer.

maxTriangles is used to store the storage size of the triangle buffer. maxReferences is used to store the maxmimum number of references that can be stored. groupIndex is used as a global atomic for wavefront synchronisation. compressionBricks the number of bricks to compress (i.e. calculate AABBs for) this udpate. storageOffset the next free position in the bricks scratch buffer. storageSize the size of the bricks scratch buffer. clearBricks the amount of bricks in the scratch buffer to initialize.

Related pages

  • Visit the FidelityFX SDK product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

Our handy software release blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

The home of great performance and optimization advice for AMD RDNAâ„¢ 2 GPUs, AMD Ryzenâ„¢ CPUs, and so much more.

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!