{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,2]],"date-time":"2026-10-02T20:21:39Z","timestamp":1790972499732,"version":"4.1.0"},"reference-count":38,"publisher":"Association for Computing Machinery (ACM)","issue":"3","license":[{"start":{"date-parts":[[2004,8,1]],"date-time":"2004-08-01T00:00:00Z","timestamp":1091318400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Graph."],"published-print":{"date-parts":[[2004,8]]},"abstract":"<jats:p>An algebra consists of a set of objects and a set of operators that act on those objects. We treat shader programs as first-class objects and define two operators: connection and combination. Connection is functional composition: the outputs of one shader are fed into the inputs of another. Combination concatenates the input channels, output channels, and computations of two shaders. Similar operators can be used to manipulate streams and apply computational kernels expressed as shaders to streams. Connecting a shader program to a stream applies that program to all elements of the stream; combining streams concatenates the record definitions of those streams.In conjunction with an optimizing compiler, these operators can manipulate shader programs in many useful ways, including specialization, without modifying the original source code. We demonstrate these operators in Sh, a metaprogramming shading language embedded in C++.<\/jats:p>","DOI":"10.1145\/1015706.1015801","type":"journal-article","created":{"date-parts":[[2004,10,7]],"date-time":"2004-10-07T17:38:56Z","timestamp":1097170736000},"page":"787-795","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":54,"title":["Shader algebra"],"prefix":"10.1145","volume":"23","author":[{"given":"Michael","family":"McCool","sequence":"first","affiliation":[{"name":"University of Waterloo"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Stefanus","family":"Du Toit","sequence":"additional","affiliation":[{"name":"University of Waterloo"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Tiberiu","family":"Popa","sequence":"additional","affiliation":[{"name":"University of Waterloo"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Bryan","family":"Chan","sequence":"additional","affiliation":[{"name":"University of Waterloo"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Kevin","family":"Moule","sequence":"additional","affiliation":[{"name":"University of Waterloo"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2004,8]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/97880.97910"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","unstructured":"APODACA A. A. AND GRITZ L. 2000. Advanced Render-Man: Creating CGI for Motion Pictures. Morgan Kaufmann.]]","DOI":"10.5555\/555371"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","unstructured":"BLINN J. F. 1977. Models of light reflection for computer synthesized pictures. Computer Graphics (Proc. SIGGRAPH) (July) 192--198.]] 10.1145\/965141.563893","DOI":"10.1145\/965141.563893"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/882262.882364"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/1015706.1015800"},{"key":"e_1_2_2_6_1","unstructured":"BUCK I. 2003. BrookGPU web site. http:\/\/graphics.stanford.edu\/projects\/brookgpu\/.]]"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/964965.808602"},{"key":"e_1_2_2_8_1","unstructured":"DAWES B. AND ABRAHAMS D. 2003. Boost++ web site. http:\/\/www.boost.org.]]"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","unstructured":"DRAVES S. 1996. Compiler generation for interactive graphics using intermediate code. In Dagstuhl Seminar on Partial Evaluation 95--114.]]","DOI":"10.5555\/647372.724038"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","unstructured":"ELLIOTT C. FINNE S. AND DE MOOR O. 2000. Compiling embedded languages. In SAIG\/PLI 9--27.]]","DOI":"10.5555\/645845.668623"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/218380.218470"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/97879.97911"},{"key":"e_1_2_2_13_1","doi-asserted-by":"publisher","DOI":"10.1145\/311534.311575"},{"key":"e_1_2_2_14_1","first-page":"1","article-title":"A data flow approach to procedural modeling","volume":"3","author":"HEDELMAN H.","year":"1984","unstructured":"HEDELMAN, H. 1984. A data flow approach to procedural modeling. IEEE CG&A 3, 1 (January), 16--26.]]","journal-title":"IEEE CG&A"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.5555\/940804"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/882262.882365"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/133994.134087"},{"key":"e_1_2_2_18_1","unstructured":"KESSENICH J. BALDWIN D. AND ROST R. 2003. OpenGL 2.0 Shading Language 1.051 ed. Feb.]]"},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/882262.882363"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/231379.231407"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/383507.383526"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/882262.882362"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.5555\/569046.569055"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/346876.346883"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/325165.325246"},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/344779.344976"},{"key":"e_1_2_2_27_1","doi-asserted-by":"publisher","DOI":"10.1145\/325165.325247"},{"key":"e_1_2_2_28_1","unstructured":"PIXAR. 2000. The RenderMan Interface version 3.2 July.]]"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/316686.316697"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","unstructured":"PROUDFOOT K. MARK W. R. HANRAHAN P. AND TZVETKIOV S. 2001. A real-time procedural shading system for programmable graphics hardware. Computer Graphics (Proc. SIGGRAPH) (Aug.) 159--170.]] 10.1145\/383259.383275","DOI":"10.1145\/383259.383275"},{"key":"e_1_2_2_31_1","doi-asserted-by":"publisher","DOI":"10.5555\/984281"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/97880.97923"},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1109\/38.656787"},{"key":"e_1_2_2_34_1","doi-asserted-by":"publisher","DOI":"10.1145\/142920.134094"},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/142920.134024"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.5555\/647652.732131"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.5555\/534134"},{"key":"e_1_2_2_38_1","volume-title":"ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation.]]","author":"VELDHUIZEN T. L.","year":"1999","unstructured":"VELDHUIZEN, T. L. 1999. C++ templates as partial evaluation. In ACM SIGPLAN Workshop on Partial Evaluation and Semantics-Based Program Manipulation.]]"}],"container-title":["ACM Transactions on Graphics"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1015706.1015801","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/1015706.1015801","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T21:26:24Z","timestamp":1750281984000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/1015706.1015801"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2004,8]]},"references-count":38,"journal-issue":{"issue":"3","published-print":{"date-parts":[[2004,8]]}},"alternative-id":["10.1145\/1015706.1015801"],"URL":"https:\/\/doi.org\/10.1145\/1015706.1015801","relation":{},"ISSN":["0730-0301","1557-7368"],"issn-type":[{"value":"0730-0301","type":"print"},{"value":"1557-7368","type":"electronic"}],"subject":[],"published":{"date-parts":[[2004,8]]},"assertion":[{"value":"2004-08-01","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}