Skip to content

weltkante/TiledTextureTest

Repository files navigation

<html>
<body>
<h3>Instructions</h3>
<p>Compile the program and run it.<br>
A left click into the window tests <b>UpdateTiles</b><br>
A right click into the window tests <b>UpdateSubresouce</b><br><br>
You can change the <b>#define USE_WARP_DEVICE</b> from <b>0</b> to <b>1</b> to use the WARP device
</p>

<h3>Expected result</h3>
<p>The images are generated by running the test program with the WARP device.<br>
On the left I upload the test image to a whole tile via <b>UpdateTiles</b><br>
On the right I upload the test image into a subsection of the tile via <b>UpdateSubresouce</b>
</p>
<p>
<img src="expected1.png" width="300px" height="300px">
<img src="expected2.png" width="300px" height="300px">
</p>

<h3>Actual result</h3>
<p>When using <b>UpdateTiles</b> only one 16th of the texture is uploaded but that part is repeated, and even that part is randomly garbled. The exact visual results are random and differ between each call so I included two example images.
</p>
<p>When using <b>UpdateSubresouce</b> the texture is transferred into the tile but everything outside the updated section is overwritten by repeating the uploaded segment. This only happens when the target of the call is a tiled texture, if I run the same call on a non-tiled texture it works as expected and preserves the texture content outside the updated section.
</p>
<p>
<img src="actual1a.png" width="300px" height="300px">
<img src="actual2.png" width="300px" height="300px"><br>
<img src="actual1b.png" width="300px" height="300px">
</p>

</body>
</html>

About

Documents tiled texture problems on Surface Pro 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published