Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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