-
公开(公告)号:EP2289050A4
公开(公告)日:2012-01-11
申请号:EP09771210
申请日:2009-06-26
申请人: MICROSOFT CORP
发明人: ONEPPO MICHAEL V , PEEPER CRAIG , BLISS ANDREW L , RAPP JOHN L , LACEY MARK M
CPC分类号: G06T15/005 , G06F8/4441 , G06F9/443 , G06F9/541 , G06T1/20 , G06T15/80 , G06T2200/28
摘要: Allocation of memory registers for shaders by a processor is described herein. For each shader, registers are allocated based on the shader's level of complexity. Simpler shader instances are restricted to a smaller number of memory registers. More complex shader instances are allotted more registers. To do so, developers' high level shading level (HLSL) language includes template classes of shaders that can later be replaced by complex or simple versions of the shader. The HLSL is converted to bytecode that can be used to rasterize pixels on a computing device.
摘要翻译: 这里描述了由处理器分配用于着色器的存储器寄存器。 对于每个着色器,根据着色器的复杂程度分配寄存器。 更简单的着色器实例仅限于较少数量的存储器寄存器。 更复杂的着色器实例被分配更多的寄存器。 为此,开发人员的高级着色级别(HLSL)语言包括着色器的模板类,以后可以被复杂或简单版本的着色器所取代。 HLSL转换为字节码,可用于栅格化计算设备上的像素。