Enables maxColorAttachmentBytesPerSample in Dawn node.

Bug: dawn:1522
Change-Id: Iaccbffbc8ac641d407491bdd8ef0b0f2c9cba309
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/113901
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Loko Kung <lokokung@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
Loko Kung 2022-12-14 05:46:48 +00:00 committed by Dawn LUCI CQ
parent 5646acbd71
commit eaeded4971
2 changed files with 2 additions and 3 deletions

View File

@ -80,7 +80,7 @@ std::vector<std::string> Split(const std::string& s, char delim) {
X(maxVertexBufferArrayStride) \
X(maxInterStageShaderComponents) \
X(maxColorAttachments) \
/* X(maxColorAttachmentBytesPerSample) */ \
X(maxColorAttachmentBytesPerSample) \
X(maxComputeWorkgroupStorageSize) \
X(maxComputeInvocationsPerWorkgroup) \
X(maxComputeWorkgroupSizeX) \

View File

@ -121,8 +121,7 @@ uint32_t GPUSupportedLimits::getMaxColorAttachments(Napi::Env) {
}
uint32_t GPUSupportedLimits::getMaxColorAttachmentBytesPerSample(Napi::Env) {
UNIMPLEMENTED();
// return limits_.limits.maxColorAttachmentBytesPerSample;
return limits_.limits.maxColorAttachmentBytesPerSample;
}
uint32_t GPUSupportedLimits::getMaxComputeWorkgroupStorageSize(Napi::Env) {