mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-03 18:55:39 +00:00
This reverts commit 857175e59b39e42fd21092fd4a96af9ea2c30297. Reason for revert: Suspected change for Dawn -> Chromium roll failures: * https://chromium-review.googlesource.com/c/chromium/src/+/3607875/ * https://ci.chromium.org/ui/p/chromium/builders/try/mac-rel/982037/overview * https://chrome-public-gold.skia.org/search?issue=3607875&crs=gerrit&patchsets=3&corpus=chrome-gpu Original change's description: > Add External Texture Gamma/Gamut Correction > > Adds configurable gamma and gamut correction in Tint's external texture > transform. Adds constants in Dawn to perform correct conversion from > BT.709 to sRGB. > > Bug: dawn:1082 > Change-Id: Id5eecc37f0224541bf36e2f9757e7e2047e4b66b > Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87666 > Kokoro: Kokoro <noreply+kokoro@google.com> > Reviewed-by: Ben Clayton <bclayton@google.com> > Commit-Queue: Brandon1 Jones <brandon1.jones@intel.com> TBR=cwallez@chromium.org,enga@chromium.org,brandon1.jones@intel.com,bclayton@google.com,noreply+kokoro@google.com,dawn-scoped@luci-project-accounts.iam.gserviceaccount.com Change-Id: Id3880e506172a18ff1258462c8c4cedb5c51c235 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: dawn:1082 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/88001 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>
83 lines
1.6 KiB
GLSL
83 lines
1.6 KiB
GLSL
#version 310 es
|
|
|
|
struct ExternalTextureParams {
|
|
uint numPlanes;
|
|
mat3x4 yuvToRgbConversionMatrix;
|
|
};
|
|
|
|
layout(binding = 2) uniform ExternalTextureParams_1 {
|
|
uint numPlanes;
|
|
mat3x4 yuvToRgbConversionMatrix;
|
|
} ext_tex_params;
|
|
|
|
uniform highp sampler2D arg_0_1;
|
|
void textureDimensions_ba1481() {
|
|
ivec2 res = textureSize(arg_0_1, 0);
|
|
}
|
|
|
|
vec4 vertex_main() {
|
|
textureDimensions_ba1481();
|
|
return vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
}
|
|
|
|
void main() {
|
|
gl_PointSize = 1.0;
|
|
vec4 inner_result = vertex_main();
|
|
gl_Position = inner_result;
|
|
gl_Position.y = -(gl_Position.y);
|
|
gl_Position.z = ((2.0f * gl_Position.z) - gl_Position.w);
|
|
return;
|
|
}
|
|
#version 310 es
|
|
precision mediump float;
|
|
|
|
struct ExternalTextureParams {
|
|
uint numPlanes;
|
|
mat3x4 yuvToRgbConversionMatrix;
|
|
};
|
|
|
|
layout(binding = 2) uniform ExternalTextureParams_1 {
|
|
uint numPlanes;
|
|
mat3x4 yuvToRgbConversionMatrix;
|
|
} ext_tex_params;
|
|
|
|
uniform highp sampler2D arg_0_1;
|
|
void textureDimensions_ba1481() {
|
|
ivec2 res = textureSize(arg_0_1, 0);
|
|
}
|
|
|
|
void fragment_main() {
|
|
textureDimensions_ba1481();
|
|
}
|
|
|
|
void main() {
|
|
fragment_main();
|
|
return;
|
|
}
|
|
#version 310 es
|
|
|
|
struct ExternalTextureParams {
|
|
uint numPlanes;
|
|
mat3x4 yuvToRgbConversionMatrix;
|
|
};
|
|
|
|
layout(binding = 2) uniform ExternalTextureParams_1 {
|
|
uint numPlanes;
|
|
mat3x4 yuvToRgbConversionMatrix;
|
|
} ext_tex_params;
|
|
|
|
uniform highp sampler2D arg_0_1;
|
|
void textureDimensions_ba1481() {
|
|
ivec2 res = textureSize(arg_0_1, 0);
|
|
}
|
|
|
|
void compute_main() {
|
|
textureDimensions_ba1481();
|
|
}
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void main() {
|
|
compute_main();
|
|
return;
|
|
}
|