#include <CeresEngine/RenderAPI/GPUQuery.hpp>
|
| class | Scope |
| | A helper class that begins a scoped occlusion query. More...
|
| |
◆ GPUOcclusionQuery() [1/2]
Deleted copy constructor.
◆ GPUOcclusionQuery() [2/2]
Deleted move constructor.
◆ begin()
Begins the occlusion query.
This will insert a command to write the number of samples that have passed between the call to begin() and end().
- Note
- You must manually call
end() to ensure that the measurement is ended. You can alternatively use with() which will measure all GPU commands triggered inside it.
- Parameters
-
| commandBuffer | The command buffer to start the query at. |
◆ end()
Ends the occlusion query.
This will insert a command to write the number of samples that have passed between the call to begin() and end().
- Parameters
-
| commandBuffer | The command buffer to end the query at. |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ TDeviceObject() [1/3]
◆ TDeviceObject() [2/3]
◆ TDeviceObject() [3/3]
◆ with()
Measures the time the GPU takes to run the commands run in commandBuffer from inside the given func.
- Template Parameters
-
| Func | A callable object that adds commands to the command buffer. |
- Parameters
-
| commandBuffer | The command buffer to start the query on. |
| func | A callable object that adds commands to the command buffer. |
The documentation for this class was generated from the following file:
- /Users/Rogiel/Developer/CeresEngine/Engine/Sources/CeresEngine/RenderAPI/GPUQuery.hpp