这是indexloc提供的服务,不要输入任何密码
Skip to content

Explainer text for mapping is confusing #5165

@kainino0x

Description

@kainino0x

Quoting, but bold is mine:

When using a discrete GPU, it’s easy to see that most GPU memory allocations aren’t visible to the CPU because they are inside the GPU’s RAM (or VRAM for Video RAM). For integrated GPUs most memory allocations are in the same physical places, but not made visible to the GPU for various reasons (for example, the CPU and GPU can have separate caches for the same memory, so accesses are not cache-coherent). Instead, for the CPU to see the content of a GPU buffer, it must be "mapped", (...)

Is GPU or CPU there (in the bold bit)? My reading is that the GPU memory allocations wouldn't be visible to the CPU; how could it not be visible for the GPU itself, which needs to read/write the data?

Originally posted by @iampi31415 in #5164

Metadata

Metadata

Assignees

No one assigned

    Labels

    copyeditingPure editorial stuff (copyediting, *.bs file syntax, etc.)explainerIssue about WebGPU Explainer

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions