From 36b3ccabfaa7373b33d6c757f279c932bd3c8d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 13 Apr 2014 00:00:41 -0700 Subject: [PATCH] Removed unused uniform. --- examples/09-hdr/common.sh | 1 - examples/09-hdr/hdr.cpp | 2 -- .../runtime/shaders/dx11/fs_hdr_bright.bin | Bin 3473 -> 3421 bytes examples/runtime/shaders/dx11/fs_hdr_lum.bin | Bin 3429 -> 3377 bytes .../runtime/shaders/dx11/fs_hdr_lumavg.bin | Bin 4029 -> 3977 bytes examples/runtime/shaders/dx11/fs_hdr_mesh.bin | Bin 2843 -> 2791 bytes .../runtime/shaders/dx11/fs_hdr_skybox.bin | Bin 1774 -> 1722 bytes .../runtime/shaders/dx11/fs_hdr_tonemap.bin | Bin 3630 -> 3578 bytes 8 files changed, 3 deletions(-) diff --git a/examples/09-hdr/common.sh b/examples/09-hdr/common.sh index adc66250..4ea9179c 100644 --- a/examples/09-hdr/common.sh +++ b/examples/09-hdr/common.sh @@ -6,7 +6,6 @@ #include "../common/common.sh" uniform vec4 u_offset[16]; -uniform vec4 u_weight[16]; uniform vec4 u_tonemap; float reinhard(float _x) diff --git a/examples/09-hdr/hdr.cpp b/examples/09-hdr/hdr.cpp index 450fc165..b50360b6 100644 --- a/examples/09-hdr/hdr.cpp +++ b/examples/09-hdr/hdr.cpp @@ -462,7 +462,6 @@ int _main_(int /*_argc*/, char** /*_argv*/) bgfx::UniformHandle u_mtx = bgfx::createUniform("u_mtx", bgfx::UniformType::Uniform4x4fv); bgfx::UniformHandle u_tonemap = bgfx::createUniform("u_tonemap", bgfx::UniformType::Uniform4fv); bgfx::UniformHandle u_offset = bgfx::createUniform("u_offset", bgfx::UniformType::Uniform4fv, 16); - bgfx::UniformHandle u_weight = bgfx::createUniform("u_weight", bgfx::UniformType::Uniform4fv, 16); bgfx::ProgramHandle skyProgram = loadProgram("vs_hdr_skybox", "fs_hdr_skybox"); bgfx::ProgramHandle lumProgram = loadProgram("vs_hdr_lum", "fs_hdr_lum"); @@ -772,7 +771,6 @@ int _main_(int /*_argc*/, char** /*_argv*/) bgfx::destroyUniform(u_mtx); bgfx::destroyUniform(u_tonemap); bgfx::destroyUniform(u_offset); - bgfx::destroyUniform(u_weight); // Shutdown bgfx. bgfx::shutdown(); diff --git a/examples/runtime/shaders/dx11/fs_hdr_bright.bin b/examples/runtime/shaders/dx11/fs_hdr_bright.bin index a3df051a4915ad8079818c05fd2eefc3aabdcbf7..c38f68cd550c1d892da0956784f0f5b9a683c616 100644 GIT binary patch delta 444 zcmbOzeOGFN6eHI}X_+W4Mg|35mk1~4nD-$P`y?N{tLZ2^S{vi{f{}p%D8ssIvF5lVEO-_VIl*A(!`11>w)SRRDhBP zxIi)x;KBr<1)%%@C_e#6gT&CqbAaLsKye2k27wZ&`W7Ia0OUIWF$loK`+?#MKmr^L z^&pC222{fekOT*&hAlwx2Ux_90L2wJG1XrMiYH(Ze+V)kC=LuDFnGhH4`KWPN^Ag1 zfWivMWZ(b>8wf}M=?%b;0r?mt9x(YV)7{C(m>)5&*}RfPosDtzE< delta 474 zcmcaBHBowk6eIUUX_+W)Murexmk1|kp5VGB?f>qvi3cUTj>b!vGcqs$Wf&M(fwTz_ zA7N%-kYQn92ms<6JPZs$F0O7JKrxUy9v}fyCj-O`EdT#AOk`jPn>g`%Jy1V`3Q+O@ zH%JBoVwfPb0F<8r0!9F?F+2_c diff --git a/examples/runtime/shaders/dx11/fs_hdr_lum.bin b/examples/runtime/shaders/dx11/fs_hdr_lum.bin index d9c9a405eb6294fb99a107432793ff78716dccbc..d3ba6f4addb43683780d4beb4a6e6877780b4053 100644 GIT binary patch delta 427 zcmaDVwNYwKx#0Ja^3>`qc2SoEQFa)`{x_x0{U;wFG1H?dK1{ok`VEO-_VIl*=p^1&t z>w)SRjsWoiE|3faJOSwd0s#oc@Bzwa02&4oLl@@(iYoxc9e@}FM1Xt{Pyx~jK-vL_ zK>#MM4-{Vj65wE{2T=?bPz@d+2@XsRAwcm5Sj1C+;tHIY>Pvy*30TA%LFNO+S-`e3 rF!V4PKv;8t5*vULps)fm8CHM@AlLyC2Zjv7$CKlj?raWY=H~(crdl!l delta 457 zcmdle^;BwtR5~|DX?%WKT5)QLsK5qJ0R{_Rmk1~4=smrOd&CN?L%wFO?%JU^nUR43 zD8sSs6t#0R)RG7#_wqyq>9AQS@!6NDiFq(Nfn;wnIK1)#VC5QBgYRJ{$5P5|;9fEWZ| z;_g841t0+qhI$ai5CGMX0FvOq)Q|%de}F~21}Lt;iK)I9D4u{td?v_zpg0TIRtAP8 zOdb%{7NEoipadwafJ}x1AOZ+3fW*0g3}}elfr`HYi339n5fYQ#nC`Har)H*SZ02TG G;{pKNs5K`5 diff --git a/examples/runtime/shaders/dx11/fs_hdr_lumavg.bin b/examples/runtime/shaders/dx11/fs_hdr_lumavg.bin index 58f385cf223ef2826f1fd2790b840a8ac3876259..4dea6b41605d00e3b657bd37730882643659bb8f 100644 GIT binary patch delta 427 zcmdlh-zh&qDxHg?G(JBqtvIzrRA2+A07DGFON5hiWHjH4qcyL!-PbKOIvaQ=nUR43 zD8s F9ssPLG{OJ? diff --git a/examples/runtime/shaders/dx11/fs_hdr_mesh.bin b/examples/runtime/shaders/dx11/fs_hdr_mesh.bin index 862697ee40674f02266e0a381bd7b8ae738c65d8..6038484bf932e7ddac6f9d5b62c7be43f3bc6fd4 100644 GIT binary patch delta 463 zcmbO&_FQy=R2mmsX?#g$ZmI~w0WL;{JzOpkPR@GI4_Ce8h@auFc$t0i=}I?71_q!E z0|P6NHUVNEW(I~EK+MC!z~BHB4{~vJ69Do->Q(?TkjWqe#0)I||1(TvV7SXPv0+j@ zFHqnB5MKc5fPo(%EkGaup%_@0APf;84H82aR{)AD0L2}E7z8w+>MekD0+8Q(?TkjWqe#0)I||1(TvU=U=U*f6P{ z4=8W|h%ayh2`CU?f-nT2d>JTT2S|g&(8Vo);tD`<2OtIk2dMf0Ae{i>12G7|#G`@Y z3qS%K4D}$2AqA?T1SG+Msi6TV{s4>k1faMAC#L#^K=A}D;%h ZXKa>bHf3boyE&L;J2T^+&D%R4O-XX?$);g(SlPE*6FfY%UQ_&Yup;E?LvG)nLi7iH01~KbRRA7=SVi z46H!f1c-f@85ouT@eLpr0g4B?xVi}d*&uZ*fEdVRkO5)_mjC}5CNePGVVYP!sh$@o zZ~!FA4I&`m2S^JL2tX(X7A6Qo1W1F#(8U#i;tD`<2OtIk4XAnxAe{i@I{+~Vz{H(_ z;tN0m91Qg!iopk}AqFJDfvF(_DEC732EJK`hfH*8;_i e7#O&Upkd|KqyQ9QU|2JmiB+F*-DV@!J&XVXMmZb+ delta 521 zcmdnR`;K>lR4NZ^X?$);g(SlPZWe|kY%UQ_&i5s9UG0?FGE4jv=L=lvJasF0O7aKt4#_3LpkD8DxN%f#v^yhKURe0?ZTZC)M)- z1rC5jc|ZgN2rxluC|?H3*8$Q3Krs*o0hqW2P+S4XcK~7#aDb{00MZE{J`jTdOgtJW zz5pb^!B7vP7*e1bNL>@;t#NhPXLN5aAK-o2oz7iBEA-6K2RJOLSV3iDIUT& z0hHJPlmG`7kh%iogTNDzI2Vus3Pd3I02K!X<_2!ekl+G}9{`Fw0M&w&I!q2@y31Og ynwg%lS%#UBk#YZIIhN^?dx26$3=CXF(4cf{QUHoDFzlIpjzynw-{yZTdl&&L0z41^ diff --git a/examples/runtime/shaders/dx11/fs_hdr_tonemap.bin b/examples/runtime/shaders/dx11/fs_hdr_tonemap.bin index b3ed79a58d3fd0871b210fdd44adf1418d913116..f4ba63566e11c45086673fc14b5ea7b1bdf1adb7 100644 GIT binary patch delta 476 zcmZ1{^GkYyR6Q4GX?#h3UTSV)fhfZUE=Gnkye<(=&gV`T)u}DGZ{cLqvS9sBm79zV z3_uwM238<#0>mGf85mZuFfiN!;sBs{kc+F^7N8hNT@H|72huV?%)s*hKf^=@h9;og zA0QVd@LL1+A!Ah0EJtC8V_(GP>;- z30TA(LFNO+fq@4GKFsRe=DVB4S)3Rd Y*KCerjb>$By?GlKJ0pk5XQTOxcZi-ppmp)p!Jpm?X0bqV zpbP^8E08h)Vigt!hC4tk02FB9Wnc($admsa%)kIrmjfi&fwT+|GqC*s&oGgJVH;5H z50DF_P{8C5yeu2%+A!7w&0uH&YCOP=kl(`uVGBToPC)rLfHX)9UHl19TmdNV0K_2h z2CDuKkWK*d9e@}FVB+jR*DL@Da4^(^CSnB5_a5}?EepaeJ^fm8#K4+0ZF;#@!mD13on4pe*%NE{eqppXE0 q_QYg1=DV!rshQ~+o6j&uGBWPjti~G6%D8)T6Bj!pkm}+tU;+U7wnL-<