Patent · US Active

Vector data types with swizzling and write masking for C++

US8010945B1 · kind B1 · utility

8Cited by
10References
26Claims
0Family size

Assignee

Inventors

Key dates

Filing dateDec 8, 2006
Grant dateAug 30, 2011
Priority date
Expiry dateMay 23, 2030

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F11/3624
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

One embodiment of the invention includes a method for extending an object-oriented programming language to include support for a shading language vector data type. The method generally includes defining a template class for a shading language vector, defining a template class for a swizzled vector, and partially specializing the vector template class for vectors of one, two, three, and four elements. The partial specialization includes a union of instances of the vector swizzle template, where each instance represents a desired vector swizzle. In addition to defining the vector and vector swizzle data types, the templates classes may overload operators provided by the object-oriented programming language to perform operations corresponding to operations of the operators in the shading language.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.