Comments (2)
What is the status of this enhancement?
I need to port a call from the good old D3DX9-Library (D3DXLoadSurfaceFromMemory) to DirectXTex. Could you describe how I would implement this the most efficient way using the DirectXTex library?
from directxtex.
This item is really a sample/documentation issue. These legacy D3DX11 functions do a lot of processing, so I wanted to capture just how heavy-weight they really are.
For other D3DX functions, see Living without D3DX which covers it in detail. The most common use case for D3DXLoadSurfaceFromMemory
is best handled by the DDSTextureLoader or WICTextureLoader in the DirectX Tool Kit which are much lighter weight.
If you need more complex processing, I'd first recommend doing it offline and storing the result in a DDS
for quick & efficient loading with DDSTextureLoader. If you need more complex support (such as in a tool) where you need to do format conversions, mipmap generation, resizing at runtime more complex than what is supported by WICTextureLoader, then you'd look at using the full DirectXTex library. See this blog post.
from directxtex.
Related Issues (20)
- DDS files with a DDS_PIXELFORMAT size of 24 HOT 12
- .sln removal HOT 1
- Build /mt failed HOT 1
- Legacy DDS files with a DDS_HEADER size of 24
- Texconv.exe can not handle whitespaces in output path HOT 5
- -flist keep structure HOT 1
- Integrate Xbox functionality in the Auxiliary folder
- FAILED (80004005: Unspecified error ) HOT 2
- Move PPM/PFM I/O functions to the library HOT 1
- WIC loading is different from D3DX loading of WIC textures HOT 9
- GPU-compressed `BC7_UNORM_SRGB` textures contain red streaks when using texconv.exe under wine HOT 1
- (Question) Converting BC4 to BMP with texconv HOT 1
- Does DirectXTex directly depend on ZLIB? HOT 3
- Can't compile ddsdump HOT 2
- gcc Warnings in Linux -Wstringop-overflow HOT 4
- Does DirectX support direct reading of compressed textures? HOT 1
- Use fixed width integers for underlying enum types HOT 1
- I need pre-compiled shaders HOT 3
- Allow user to convert single lat-long hdri into cubemap HOT 1
- Low quality DXT compression HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from directxtex.