Stay organized with collections
Save and categorize content based on your preferences.
SwappyTracer
#include <swappy_common.h>
Collection of callbacks to be called each frame to trace execution.
Summary
Injection of these is optional.
Public attributes
|
postSwapBuffers
|
Callback called after calling the function to queue the frame to the composer.
|
postWait
|
Callback called after wait to queue the frame to the composer is done.
|
preSwapBuffers
|
Callback called before calling the function to queue the frame to the composer.
|
preWait
|
Callback called before waiting to queue the frame to the composer.
|
startFrame
|
Callback called at the start of a frame.
|
swapIntervalChanged
|
Callback called when the swap interval was changed.
|
userData
|
void *
Pointer to some arbitrary data that will be passed as the first argument of callbacks.
|
Public attributes
postSwapBuffers
SwappyPostSwapBuffersCallback SwappyTracer::postSwapBuffers
Callback called after calling the function to queue the frame to the composer.
postWait
SwappyPostWaitCallback SwappyTracer::postWait
Callback called after wait to queue the frame to the composer is done.
preSwapBuffers
SwappyPreSwapBuffersCallback SwappyTracer::preSwapBuffers
Callback called before calling the function to queue the frame to the composer.
preWait
SwappyPreWaitCallback SwappyTracer::preWait
Callback called before waiting to queue the frame to the composer.
userData
void * SwappyTracer::userData
Pointer to some arbitrary data that will be passed as the first argument of callbacks.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-07-12 UTC.
[null,null,["Last updated 2021-07-12 UTC."],[],[],null,["# SwappyTracer Struct Reference\n\nSwappyTracer\n============\n\n`#include \u003cswappy_common.h\u003e`\n\nCollection of callbacks to be called each frame to trace execution.\n\nSummary\n-------\n\nInjection of these is optional.\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [postSwapBuffers](#struct_swappy_tracer_1a5b90ffd050550ba2bddf87d3beb1de31) | [SwappyPostSwapBuffersCallback](/games/sdk/reference/frame-pacing/group/swappy-common#group__swappy__common_1ga43b3466def86b5364bc588e3706ac1c6) Callback called after calling the function to queue the frame to the composer. |\n| [postWait](#struct_swappy_tracer_1aff96c754aeeb02dd0056b8960fb28bf6) | [SwappyPostWaitCallback](/games/sdk/reference/frame-pacing/group/swappy-common#group__swappy__common_1gaf3c6e6c7e094da4ed0cd23799887d108) Callback called after wait to queue the frame to the composer is done. |\n| [preSwapBuffers](#struct_swappy_tracer_1a7bca44be2bd337dc03df3bd347a866d7) | [SwappyPreSwapBuffersCallback](/games/sdk/reference/frame-pacing/group/swappy-common#group__swappy__common_1ga21947d41c898ef2159b8305f6135000a) Callback called before calling the function to queue the frame to the composer. |\n| [preWait](#struct_swappy_tracer_1ada85e41048b0ae92a862e57e3116b74b) | [SwappyPreWaitCallback](/games/sdk/reference/frame-pacing/group/swappy-common#group__swappy__common_1ga8da48682343efb9c28c6f7e8c0a807e4) Callback called before waiting to queue the frame to the composer. |\n| [startFrame](#struct_swappy_tracer_1a8dd15d901ee45cf62ccb2850d3da394b) | [SwappyStartFrameCallback](/games/sdk/reference/frame-pacing/group/swappy-common#group__swappy__common_1ga4da61fae71b4f0cd793f3258f630d725) Callback called at the start of a frame. |\n| [swapIntervalChanged](#struct_swappy_tracer_1ad67a82b14f790d233ef55b231d570548) | [SwappySwapIntervalChangedCallback](/games/sdk/reference/frame-pacing/group/swappy-common#group__swappy__common_1ga8c875fa65196c9dd2cb5436a55134cfe) Callback called when the swap interval was changed. |\n| [userData](#struct_swappy_tracer_1acb8c410a25c23172b054a3ea3c62d48a) | `void *` Pointer to some arbitrary data that will be passed as the first argument of callbacks. |\n\nPublic attributes\n-----------------\n\n### postSwapBuffers\n\n```text\nSwappyPostSwapBuffersCallback SwappyTracer::postSwapBuffers\n``` \nCallback called after calling the function to queue the frame to the composer. \n\n### postWait\n\n```text\nSwappyPostWaitCallback SwappyTracer::postWait\n``` \nCallback called after wait to queue the frame to the composer is done. \n\n### preSwapBuffers\n\n```text\nSwappyPreSwapBuffersCallback SwappyTracer::preSwapBuffers\n``` \nCallback called before calling the function to queue the frame to the composer. \n\n### preWait\n\n```text\nSwappyPreWaitCallback SwappyTracer::preWait\n``` \nCallback called before waiting to queue the frame to the composer. \n\n### startFrame\n\n```text\nSwappyStartFrameCallback SwappyTracer::startFrame\n``` \nCallback called at the start of a frame. \n\n### swapIntervalChanged\n\n```text\nSwappySwapIntervalChangedCallback SwappyTracer::swapIntervalChanged\n``` \nCallback called when the swap interval was changed. \n\n### userData\n\n```scdoc\nvoid * SwappyTracer::userData\n``` \nPointer to some arbitrary data that will be passed as the first argument of callbacks."]]