主权项 |
1. A computing system for expediting bilinear texture sampling of texture layouts comprising principal data including one or more rows and one or more columns of texels, the system comprising:
a memory; a processing unit operably connected to the memory, the processing unit being adapted to:
receive sampling instructions identifying a first texture layout to sample from and a sampling point having coordinates near an edge of the principal data of the first texture layout;modify the first texture layout, including adding at least one row or column of texels to a given edge of the principal data of the first texture layout, thereby creating a second texture layout;set the closest four texels to the sampling point in the second texture layout as a filter kernel, wherein the four texels include two texels from the added row or column, and wherein two texels of the filter kernel are a stride apart from the remaining two texels;sample the texels of the filter kernel using only two logical load operations; andperform bilinear filtering on the sampled data of the four texels. |