<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>textures on TutorialEdge.net</title><link>https://tutorialedge.net/tags/textures/</link><description>Recent content in textures on TutorialEdge.net</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 29 May 2026 10:05:00 +0000</lastBuildDate><atom:link href="https://tutorialedge.net/tags/textures/index.xml" rel="self" type="application/rss+xml"/><item><title>Part 5 - Textures and Image Loading</title><link>https://tutorialedge.net/projects/graphics-with-wgpu-in-rust/part-5-textures-and-image-loading/</link><pubDate>Fri, 29 May 2026 10:05:00 +0000</pubDate><guid>https://tutorialedge.net/projects/graphics-with-wgpu-in-rust/part-5-textures-and-image-loading/</guid><description>A triangle is a great proof-of-concept, but most real graphics involve images. In this part we load a PNG, upload it to the GPU as a texture, and sample it onto a textured quad.
Add the image crate to Cargo.toml:
Cargo.toml [dependencies] wgpu = &amp;#34;0.20&amp;#34; winit = &amp;#34;0.29&amp;#34; pollster = &amp;#34;0.3&amp;#34; env_logger = &amp;#34;0.11&amp;#34; log = &amp;#34;0.4&amp;#34; bytemuck = { version = &amp;#34;1.14&amp;#34;, features = [&amp;#34;derive&amp;#34;] } image = &amp;#34;0.25&amp;#34; Place any PNG image at assets/happy-tree.</description></item></channel></rss>