-
公开(公告)号:US09189881B2
公开(公告)日:2015-11-17
申请号:US13906132
申请日:2013-05-30
Applicant: ARM Limited
Inventor: Alexander Galazin , Brian Pearson , Andreas Danner Nilsen , Joerg Wagner
CPC classification number: G06T15/005 , G06T11/001 , G09G5/393
Abstract: In a graphics processing system that includes one or more programmable shading stages, the shader compiler receives a shader program to be compiled (step 40), identifies any run time constant expressions in the shader program (step 41), and removes such expressions from the original shader program, and substitutes them in the original main shader program with appropriate load instructions pointing to where the output results from a pilot shader program will be stored (step 42). The shader compiler then creates a separate pilot shader program for the identified run-time constant expressions (step 43). The pilot shader program is then executed on the graphics processing pipeline (step 44), before the modified main shader program (step 45).
Abstract translation: 在包括一个或多个可编程着色阶段的图形处理系统中,着色器编译器接收要编译的着色器程序(步骤40),识别着色器程序中的任何运行时常数表达式(步骤41),并从 原始着色器程序,并将它们替换为原始主着色器程序,并使用适当的加载指令指向将存储来自飞行员着色器程序的输出结果的位置(步骤42)。 着色器编译器然后为识别的运行时常数表达式创建单独的导频着色器程序(步骤43)。 然后,在修改的主着色器程序之前,在图形处理流水线(步骤44)上执行导频着色器程序(步骤45)。
-
公开(公告)号:US20140354669A1
公开(公告)日:2014-12-04
申请号:US13906132
申请日:2013-05-30
Applicant: ARM Limited
Inventor: Alexander Galazin , Brian Pearson , Andreas Danner Nilsen , Joerg Wagner
IPC: G06T11/40
CPC classification number: G06T15/005 , G06T11/001 , G09G5/393
Abstract: In a graphics processing system that includes one or more programmable shading stages, the shader compiler receives a shader program to be compiled (step 40), identifies any run time constant expressions in the shader program (step 41), and removes such expressions from the original shader program, and substitutes them in the original main shader program with appropriate load instructions pointing to where the output results from a pilot shader program will be stored (step 42). The shader compiler then creates a separate pilot shader program for the identified run-time constant expressions (step 43). The pilot shader program is then executed on the graphics processing pipeline (step 44), before the modified main shader program (step 45).
Abstract translation: 在包括一个或多个可编程着色阶段的图形处理系统中,着色器编译器接收要编译的着色器程序(步骤40),识别着色器程序中的任何运行时常数表达式(步骤41),并从 原始着色器程序,并将它们替换为原始主着色器程序,并使用适当的加载指令指向将存储来自飞行员着色器程序的输出结果的位置(步骤42)。 着色器编译器然后为识别的运行时常数表达式创建单独的导频着色器程序(步骤43)。 然后,在修改的主着色器程序之前,在图形处理流水线(步骤44)上执行导频着色器程序(步骤45)。
-