Method and system for implementing graphics control constructs
First Claim
Patent Images
1. A method for implementing a graphics control construct, comprising:
- assigning a value to a first bit in a stencil buffer used by a graphics system interface in response to a first condition of a first conditional clause in an application program;
selecting a first portion of image data in response to the value; and
processing the selected first portion of image data in a frame buffer of a graphics pipeline;
assigning a value to a second bit in the stencil buffer in response to a first condition of a second conditional clause in the application program, the second conditional clause nested within the first conditional clause;
selecting a second portion of image data in response to the value assigned to the second bit; and
processing the selected second portion of image data in the frame buffer.
3 Assignments
0 Petitions
Accused Products
Abstract
One aspect of the invention is a method for implementing a graphics control construct. The method includes the step of assigning by a graphics system interface (15) a value to at least one bit in a stencil buffer (S) in response to a first condition of a first conditional clause in an application program (11). The method also includes the steps of selecting at least a first portion of image data in response to the value, and processing the selected first portion of image data in a frame buffer (70) of a graphics pipeline (17).
-
Citations
17 Claims
-
1. A method for implementing a graphics control construct, comprising:
-
assigning a value to a first bit in a stencil buffer used by a graphics system interface in response to a first condition of a first conditional clause in an application program;
selecting a first portion of image data in response to the value; and
processing the selected first portion of image data in a frame buffer of a graphics pipeline;
assigning a value to a second bit in the stencil buffer in response to a first condition of a second conditional clause in the application program, the second conditional clause nested within the first conditional clause;
selecting a second portion of image data in response to the value assigned to the second bit; and
processing the selected second portion of image data in the frame buffer. - View Dependent Claims (2, 3, 4)
-
-
5. A method for implementing a graphics control construct, comprising:
-
assigning a value to at least one bit in a stencil buffer used by a graphics system interface in response to a first condition of a first conditional clause in an application program;
selecting at least a first portion of image data in response to the value;
processing the selected first portion of image data in a frame buffer of a graphics pipeline; and
testing an end condition of the first conditional clause by determining whether one of the group of a minimum value and a maximum value is equal to a known constant.
-
-
6. An application for implementing a control construct, comprising:
-
a computer-readable medium; and
software residing on the computer-readable medium, the software operable to;
assign a value to a first bit in a stencil buffer used by a graphics system interface in response to a first condition of a first conditional clause;
assign a value to a second bit in the stencil buffer in response to a first condition of a second conditional clause nested within the first conditional clause;
select a first portion of image data in response to the value;
cause the selected first portion of image data to be processed in a frame buffer of a graphics pipeline;
select a second portion of image data in response to the value assigned to the second bit; and
cause the selected second portion of image data to be processed in the frame buffer. - View Dependent Claims (7, 8, 9)
-
-
10. An application for implementing a control construct, comprising:
-
a computer-readable medium; and
software residing on the computer-readable medium, the software operable to;
assign a value to at least one bit in a stencil buffer used by a graphics system interface in response to a first condition of a first conditional clause;
select at least a first portion of image data in response to the value; and
cause the selected first portion of image data to be processed in a frame buffer of a graphics pipeline; and
test an end condition of the first conditional clause by determining whether one of the group of a minimum value and a maximum value is equal to a known constant. - View Dependent Claims (11)
-
-
12. A system for implementing a control construct, comprising:
-
a graphics system interface;
a graphics system host coupled to the graphics system interface; and
an application program resident on the host, the application program operable to;
assign a value to a first bit in a stencil buffer used by the graphics system interface in response to a first condition of a first conditional clause and select a first portion of image data in response to the value, cause the selected first portion of image data to be processed in a frame buffer of a graphics pipeline coupled to the host;
assign a value to a second bit in the stencil buffer in response to a first condition of a second conditional clause nested within the first conditional clause and select a second portion of image data in response to the value assigned to the second bit; and
cause the selected second portion of image data to be processed in the frame buffer. - View Dependent Claims (13, 14, 15)
-
-
16. A system for implementing a control construct, comprising:
-
a graphics system interface;
a graphics system host coupled to the graphics system interface; and
an application program resident on the host, the application program operable to;
assign a value to at least one bit in a stencil buffer used by the graphics system interface in response to a first condition of a first conditional clause and select at least a first portion of image data in response to the value;
cause the selected first portion of image data to be processed in a frame buffer of a graphics pipeline coupled to the host; and
test an end condition of the first conditional clause by determining whether one of the group of a minimum value and a maximum value is equal to a known constant. - View Dependent Claims (17)
-
Specification