mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-19 09:55:26 +00:00
Implement External Texture Binding Functionality
Adds functionality to BindGroupLayout and BindGroup to allow GPUExternalTexture bindings. Bug: dawn:728 Change-Id: I651b28606dceda15f0a944711ddba639df77c1a3 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/47381 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
a9e39e11a8
commit
39633e2da2
@@ -68,4 +68,10 @@ static constexpr uint64_t kCopyBufferToBufferOffsetAlignment = 4u;
|
||||
// * 1024 / 8.
|
||||
static constexpr uint32_t kMaxQueryCount = 8192u;
|
||||
|
||||
// An external texture occupies multiple binding slots. These are the per-external-texture bindings
|
||||
// needed.
|
||||
static constexpr uint8_t kSampledTexturesPerExternalTexture = 3u;
|
||||
static constexpr uint8_t kSamplersPerExternalTexture = 1u;
|
||||
static constexpr uint8_t kUniformsPerExternalTexture = 1u;
|
||||
|
||||
#endif // COMMON_CONSTANTS_H_
|
||||
|
||||
Reference in New Issue
Block a user