llvm / llvm/llvm-project

[HLSL] Use memcpy for HLSL buffer copies that don't have padding

Open
#167,546 1 comment 0 reactions 1 assignee Claimed by @bogner View on GitHub
HLSL
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

For cbuffers that have something like an array of `uint4`, there is no padding between the elements at all. We should just use memcpy when copying these rather than breaking the accesses up element by element.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.