mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 21:49:57 -04:00
Add shared pose motion vectors for Link and attached equipment
This commit is contained in:
30
runtime/motion_owner.h
Normal file
30
runtime/motion_owner.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
#define MOTION_OWNER_BINDINGS 512
|
||||
#define MOTION_OWNER_RIGID_EQUIPMENT 1u
|
||||
typedef struct {
|
||||
uint64_t player, actor, link, model, part, lifetime;
|
||||
uint32_t generation, kind, flags;
|
||||
} MotionOwner;
|
||||
typedef struct {
|
||||
uint64_t address, size, observed, buffer;
|
||||
MotionOwner owner;
|
||||
int ambiguous;
|
||||
} MotionOwnerBinding;
|
||||
typedef struct {
|
||||
MotionOwnerBinding bindings[MOTION_OWNER_BINDINGS];
|
||||
unsigned count;
|
||||
} MotionOwnerSnapshot;
|
||||
|
||||
struct Cpu;
|
||||
// Record the model responsible for an address query in a recognized model-binding call site.
|
||||
void motion_owner_observe(struct Cpu *cpu, uint64_t address, uint64_t size);
|
||||
// Capture identities alongside the submission's uniform bytes, before asynchronous replay.
|
||||
void motion_owner_capture(MotionOwnerSnapshot *out);
|
||||
void motion_owner_present(void);
|
||||
void motion_owner_forget(uint64_t buffer);
|
||||
void motion_owner_reset(void);
|
||||
void motion_owner_forget_range(uint64_t address, uint64_t size);
|
||||
int vk_usnap_motion_owner(uint64_t address, uint64_t size, MotionOwner *out);
|
||||
int motion_owner_enabled(void);
|
||||
Reference in New Issue
Block a user