Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track depth textures for VR #205

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
14 changes: 14 additions & 0 deletions include/reshade_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,20 @@ namespace reshade { namespace api
};
};

/// <summary>
/// Describes a rectangular region in a resource.
/// </summary>
struct region
{
uint32_t left;
uint32_t top;
uint32_t right;
uint32_t bottom;

constexpr uint32_t width() const { return right - left; }
constexpr uint32_t height() const { return bottom - top; }
};

/// <summary>
/// An opaque handle to a resource object (buffer, texture, ...).
/// Resources created by the application are only guaranteed to be valid during event callbacks.
Expand Down
Loading