Skip to content

Commit a4967c9

Browse files
committed
Generate the blit_texture_highp.frag.inl file at build time
Bug: b/533517706
1 parent 97b0d66 commit a4967c9

2 files changed

Lines changed: 12 additions & 57 deletions

File tree

base/cvd/cuttlefish/host/graphics_detector/shaders/BUILD.bazel

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,24 @@ genrule(
3131
tools = [":generate_shader_embed"],
3232
)
3333

34+
genrule(
35+
name = "blit_texture_highp.frag.inl",
36+
srcs = [
37+
"blit_texture_highp.frag",
38+
"blit_texture_highp.frag.spv",
39+
],
40+
outs = ["blit_texture_highp.frag.inl"],
41+
cmd = "$(location :generate_shader_embed) $(location :blit_texture_highp.frag) $(location :blit_texture_highp.frag.spv) kBlitTextureHighpFrag $@",
42+
tools = [":generate_shader_embed"],
43+
)
44+
3445
cf_cc_library(
3546
name = "graphics_detector_shaders",
3647
clang_format_enabled = False,
3748
textual_hdrs = [
3849
":blit_texture.frag.inl",
3950
":blit_texture.vert.inl",
40-
"blit_texture_highp.frag.inl",
51+
":blit_texture_highp.frag.inl",
4152
"blit_texture_lowp.frag.inl",
4253
"blit_texture_mediump.frag.inl",
4354
],

base/cvd/cuttlefish/host/graphics_detector/shaders/blit_texture_highp.frag.inl

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)