Skip to content

Optimize structures for 64bit platforms and changed type MinWidth to uint32_t #118

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
16 changes: 8 additions & 8 deletions Source/GmmLib/inc/External/Common/GmmPlatformExt.h
Original file line number Diff line number Diff line change
@@ -442,20 +442,20 @@ typedef struct GMM_TEXTURE_ALIGN_REC
//---------------------------------------------------------------------------
typedef struct __GMM_BUFFER_TYPE_REC
{
uint32_t Alignment; // Base Address Alignment
GMM_GFX_SIZE_T MinAllocationSize; // Minimum Allocation size requirement
GMM_GFX_SIZE_T MaxPitch; // Maximum pitch
uint32_t MinPitch; // Minimum pitch
uint32_t PitchAlignment; // Pitch Alignment restriction.
uint32_t RenderPitchAlignment; // Pitch Alignment for render surface
uint32_t LockPitchAlignment; // Pitch Alignment for locked surface
uint32_t MinPitch; // Minimum pitch
GMM_GFX_SIZE_T MaxPitch; // Maximum pitch
GMM_GFX_SIZE_T MinAllocationSize; // Minimum Allocation size requirement
uint32_t Alignment; // Base Address Alignment

uint32_t MinHeight; // Mininum height in bytes
GMM_GFX_SIZE_T MinWidth; // Minimum width in bytes
uint32_t MinDepth; // Minimum depth (only for volume)
GMM_GFX_SIZE_T MaxHeight; // Maximum height in bytes
GMM_GFX_SIZE_T MaxWidth; // Maximum Width in bytes
GMM_GFX_SIZE_T MaxHeight; // Maximum height in bytes
uint32_t MinWidth; // Minimum width in bytes
uint32_t MinHeight; // Mininum height in bytes
uint32_t MaxDepth; // Maximum depth (only for volume)
uint32_t MinDepth; // Minimum depth (only for volume)
uint32_t MaxArraySize;
uint8_t NeedPow2LockAlignment; // Locking surface need to be power of 2 aligned
} __GMM_BUFFER_TYPE;
2 changes: 1 addition & 1 deletion Source/GmmLib/inc/External/Common/GmmResourceInfoExt.h
Original file line number Diff line number Diff line change
@@ -381,8 +381,8 @@ typedef struct GMM_RESCREATE_CUSTOM_PARAMS_2_REC : public GMM_RESCREATE_CUSTOM_P
{
struct
{
uint32_t Pitch;
GMM_GFX_SIZE_T Size;
uint32_t Pitch;
uint32_t BaseAlignment;
struct
{