# US 2025/0095266 A1 · Sampler feedback for texture space shading

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0095266 A1
- Document ID: US20250095266A1
- Status: Published application
- Kind: A1
- Application number: 18/467,666
- Filed: 2023-09-14
- Published: 2025-03-20
- Earliest claimed: 2023-09-14
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Joseph Daniel GARVEY; Bojan VRCELJ
- Web page: https://patentgrep.com/patent/US20250095266A1

## CPC

- G06T 15/005: {General purpose rendering architectures}
- G06T 1/60: Memory management
- G06T 15/04: Texture mapping
- G06T 15/80: Shading
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

This disclosure provides systems, devices, apparatus, and methods, including computer programs encoded on storage media, for sampler feedback for texture space shading. A processor may assign each shading element in a set of shading elements associated with a geometry unit to a corresponding shading element group in a set of shading element groups. The processor may identify whether each shading element is a visible shading element. The processor may calculate a group offset value for each shading element group in the set of shading element groups based on a number of visible shading elements in the set of shading elements. The processor may calculate an element offset value for each shading element based on a number of visible shading elements. The processor may allocate, based on the element offset value and the group offset value, texture memory to the visible shading elements.

## Claims

### Claim 1

An apparatus for graphics processing, comprising:
a memory; and
a processor coupled to the memory and, based on information stored in the memory, the processor is configured to:
assign each shading element in a set of shading elements associated with a geometry unit to a corresponding shading element group in a set of shading element groups;
identify whether each shading element in the set of shading elements is a visible shading element;
calculate a group offset value for each shading element group in the set of shading element groups based on a number of visible shading elements in the set of shading elements;
calculate an element offset value for each shading element within each of the shading element groups based on a number of visible shading elements in the shading element group; and
allocate, based on the element offset value for each shading element within each of the shading element groups and the group offset value for each shading element group in the set of shading element groups, texture memory to the visible shading elements in each of the shading element groups.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
output an indication of the allocated texture memory to the visible shading elements in each of the shading element groups.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein to output the indication of the allocated texture memory, the processor is configured to:
transmit the indication of the allocated texture memory; or
store the indication of the allocated texture memory.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the geometry unit comprises at least one of a meshlet or a triangle.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
mark each shading element in the set of shading elements as being visible or non-visible based on the identification, wherein to calculate the group offset value, the processor is configured to calculate the group offset value based on whether a shading element is marked, and wherein to calculate the element offset value, the processor is configured to calculate the element offset value based on whether the shading element is marked.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein to assign each shading element to the corresponding shading element group, the processor is configured to assign one bit out of a number of SC visibility bits to each shading element in the corresponding shading element group.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein to calculate the group offset value for each shading element group in the set of shading element groups based on the number of visible shading elements in the set of shading elements, the processor is configured to perform a wave operation on the set of shading element groups.

### Claim 8 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
assign a level of a mip region map to the visible shading elements in each of the shading element groups, wherein to allocate the texture memory, the processor is configured to allocate the texture memory further based on the assigned level.

### Claim 9 (depends on 1)

The apparatus of claim 1, wherein the texture memory comprises physical memory of a graphics processor.

### Claim 10 (depends on 1)

The apparatus of claim 1, wherein the processor is further configured to:
store, in the texture memory, shaded tiles based on the visible shading elements in each of the shading element groups.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the visible shading elements are associated with a set of texels, wherein each of the set of texels is associated with a primitive identifier and a material identifier, and wherein the processor is further configured to:
associate a set of pixels in a screen space with the set of texels;
provide, based on the association, the primitive identifier and the material identifier associated with each of the set of texels to a shader; and
shade, via the shader, the set of texels based on the primitive identifier and the material identifier associated with each of the set of texels, wherein the set of texels is associated with the shaded tiles.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the processor is further configured to:
perform depth equals testing based on the primitive identifier and the material identifier associated with each of the set of texels and the visible shading elements, wherein to shade the set of texels, the processor is configured to shade the set of texels further based on each of the set of texels passing the depth equals testing.

### Claim 13 (depends on 1)

The apparatus of claim 1, wherein the texture memory is associated with an address within a shading atlas.

### Claim 14 (depends on 1)

The apparatus of claim 1, wherein the apparatus is a wireless communication device comprising at least one of a transceiver or an antenna coupled to the processor.

### Claim 15

A method of graphics processing, comprising:
assigning each shading element in a set of shading elements associated with a geometry unit to a corresponding shading element group in a set of shading element groups;
identifying whether each shading element in the set of shading elements is a visible shading element;
calculating a group offset value for each shading element group in the set of shading element groups based on a number of visible shading elements in the set of shading elements;
calculating an element offset value for each shading element within each of the shading element groups based on a number of visible shading elements in the shading element group; and
allocating, based on the element offset value for each shading element within each of the shading element groups and the group offset value for each shading element group in the set of shading element groups, texture memory to the visible shading elements in each of the shading element groups.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
outputting an indication of the allocated texture memory to the visible shading elements in each of the shading element groups.

### Claim 17 (depends on 16)

The method of claim 16, wherein outputting the indication of the allocated texture memory comprises:
transmitting the indication of the allocated texture memory; or
storing the indication of the allocated texture memory.

### Claim 18 (depends on 15)

The method of claim 15, wherein the geometry unit comprises at least one of a meshlet or a triangle.

### Claim 19 (depends on 15)

The method of claim 15, further comprising:
marking each shading element in the set of shading elements as being visible or non-visible based on the identification, wherein calculating the group offset value comprises calculating the group offset value based on whether a shading element is marked, and wherein calculating the element offset value comprises calculating the element offset value based on whether the shading element is marked.

### Claim 20 (depends on 15)

The method of claim 15, wherein assigning each shading element to the corresponding shading element group comprises assigning one bit out of a number of SC visibility bits to each shading element in the corresponding shading element group.

### Claim 21 (depends on 15)

The method of claim 15, wherein calculating the group offset value for each shading element group in the set of shading element groups based on the number of visible shading elements in the set of shading elements comprises performing a wave operation on the set of shading element groups.

### Claim 22 (depends on 15)

The method of claim 15, further comprising:
assigning a level of a mip region map to the visible shading elements in each of the shading element groups, wherein allocating the texture memory is further based on the assigned level.

### Claim 23 (depends on 15)

The method of claim 15, wherein the texture memory comprises physical memory of a graphics processor.

### Claim 24 (depends on 15)

The method of claim 15, further comprising:
storing, in the texture memory, shaded tiles based on the visible shading elements in each of the shading element groups.

### Claim 25 (depends on 24)

The method of claim 24, wherein the visible shading elements are associated with a set of texels, wherein each of the set of texels is associated with a primitive identifier and a material identifier, the method further comprising:
associating a set of pixels in a screen space with the set of texels;
providing, based on the association, the primitive identifier and the material identifier associated with each of the set of texels to a shader; and
shading, via the shader, the set of texels based on the primitive identifier and the material identifier associated with each of the set of texels, wherein the set of texels is associated with the shaded tiles.

### Claim 26 (depends on 25)

The method of claim 25, further comprising:
performing depth equals testing based on the primitive identifier and the material identifier associated with each of the set of texels and the visible shading elements, wherein shading the set of texels comprises shading the set of texels further based on each of the set of texels passing the depth equals testing.

### Claim 27 (depends on 15)

The method of claim 15, wherein the texture memory is associated with an address within a shading atlas.

### Claim 28

A computer-readable medium storing computer executable code, the computer executable code, when executed by a processor, causes the processor to:
assign each shading element in a set of shading elements associated with a geometry unit to a corresponding shading element group in a set of shading element groups;
identify whether each shading element in the set of shading elements is a visible shading element;
calculate a group offset value for each shading element group in the set of shading element groups based on a number of visible shading elements in the set of shading elements;
calculate an element offset value for each shading element within each of the shading element groups based on a number of visible shading elements in the shading element group; and
allocate, based on the element offset value for each shading element within each of the shading element groups and the group offset value for each shading element group in the set of shading element groups, texture memory to the visible shading elements in each of the shading element groups.

### Claim 29 (depends on 28)

The computer-readable medium of claim 28, wherein the code, when executed by the processor, further causes the processor to:
output an indication of the allocated texture memory to the visible shading elements in each of the shading element groups.

### Claim 30 (depends on 28)

The computer-readable medium of claim 28, wherein the geometry unit comprises at least one of a meshlet or a triangle.
