Skip to content

Copy Bytes from a MSAA Framebuffer attachment #278

@vinsentli

Description

@vinsentli

The IFramebuffer provides interfaces for reading data from attachments, but currently all data is fetched from attachment.texture. When dealing with an framebuffer supporting MSAA, ​data should be read from the attachment.resolveTexture.

Image

Should an interface be provided to directly read data from ITexture, enabling it to accommodate all scenarios?

Like below:

void copyBytesFromTexture(ICommandQueue& cmdQueue,
                                        std::shared_ptr<ITexture> srcTexture,
                                        void* pixelBytes,
                                        const TextureRangeDesc& range,
                                        size_t bytesPerRow = 0) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions