Skip to content

Tight alignment is not valid when the texture layout is D3D12_TEXTURE_LAYOUT_64KB_*_SWIZZLE #86

@TheLastRar

Description

@TheLastRar

When creating resources, the allocator will add the D3D12_RESOURCE_FLAG_USE_TIGHT_ALIGNMENT flag.
Resources specifying a 64kb swizzle layout cannot use this flag, GetResourceAllocationInfo reports the following validation error;

D3D12 ERROR: ID3D12Device::GetResourceAllocationInfo: D3D12_RESOURCE_DESC::Flag D3D12_RESOURCE_FLAG_USE_TIGHT_ALIGNMENT is not valid when the layout is either D3D12_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE or D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE (current layout is D3D12_TEXTURE_LAYOUT_64KB_UNDEFINED_SWIZZLE). [ STATE_CREATION ERROR #599: CREATERESOURCE_INVALIDMISCFLAGS]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions