{"title":"High level languages for GPUs","authors":"I. Buck","doi":"10.1145/1198555.1198772","DOIUrl":null,"url":null,"abstract":"• HLSL and Cg are syntactically almost identical • Exception: Cg 1.3 allows shader “interfaces”, unsized arrays • Command line compilers • Microsoft’s FXC.exe • Compiles to DirectX vertex and pixel shader assembly only • fxc /Tps_2_0 myshader.hlsl • NVIDIA’s CGC.exe • Compiles to everything • cgc -profile ps_2_0 myshader.cg • Can generate very different assembly! • Driver will recompile code • Compliance may vary","PeriodicalId":192758,"journal":{"name":"ACM SIGGRAPH 2005 Courses","volume":"153 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2005-07-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"4","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM SIGGRAPH 2005 Courses","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1198555.1198772","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 4
Abstract
• HLSL and Cg are syntactically almost identical • Exception: Cg 1.3 allows shader “interfaces”, unsized arrays • Command line compilers • Microsoft’s FXC.exe • Compiles to DirectX vertex and pixel shader assembly only • fxc /Tps_2_0 myshader.hlsl • NVIDIA’s CGC.exe • Compiles to everything • cgc -profile ps_2_0 myshader.cg • Can generate very different assembly! • Driver will recompile code • Compliance may vary