Commit Graph

146 Commits

Author SHA1 Message Date
walbourn_cp
f4cf594bcd Update for VS 2013 / Windows 8.1 RTM 2013-10-18 17:36:51 -07:00
walbourn_cp
6cafea6cb0 DirectXTex: Fixed problem with DirectCompute compressor for BC7_UNORM_SRGB
- Also added diagnostic message from texconv when doing DirectCompute compression
2013-10-08 16:26:29 -07:00
walbourn_cp
d82ee0c5dd DirectXTex: Supressed warning from /analyze 2013-10-07 18:21:09 -07:00
walbourn_cp
5159109035 DirectXTex: public header doesn't include windows.h, so might not have _WIN32_WINNT_WIN8 symbol yet 2013-10-04 17:44:52 -07:00
walbourn_cp
e12d9c67f2 DirectXTex: Update for sRGB handling with pmalpha 2013-10-01 17:28:56 -07:00
walbourn_cp
1bc39d8854 DirectXTex: minor /analyze fix 2013-09-09 15:10:35 -07:00
walbourn_cp
7523b2bb9b DirectXTex: Updated to use DirectXMath 3.06 when available 2013-09-09 12:45:36 -07:00
walbourn_cp
c9f5fdb7a8 DirectXTex: add use of d3d11_1.h when available 2013-09-03 15:04:04 -07:00
walbourn_cp
8eec65caf4 DirectXTex: BC6H / BC7 DirectCompute codec integration 2013-08-05 10:58:54 -07:00
walbourn_cp
44510c23e7 DirectXTex: Fixed problem with BC4/BC5 compressor when given RGBA32 input image 2013-07-31 13:16:31 -07:00
walbourn_cp
d062ae2097 DirectxTex: ComputeMSE flags for X2 bias 2013-07-31 13:15:42 -07:00
walbourn_cp
8bfc1b7de3 DirectXTex: Added WIC_FLAGS_IGNORE_SRGB to ignore the presense of sRGB metadata in WIC files 2013-07-31 00:39:59 -07:00
walbourn_cp
5f3b34beb5 DirectXTex: Support for non-power-of-2 mipmapped BC textures 2013-07-30 17:32:45 -07:00
walbourn_cp
5a6c053e99 DirectXTex: Fixed syntax error 2013-07-29 18:06:05 -07:00
walbourn_cp
c4c09c2966 DirectXTex: minor fix for BC1 encoder 2013-07-29 13:33:52 -07:00
walbourn_cp
1d3e1d0904 DirectXTex: Make ScopedObject match Microsoft::WRL::ComPtr, use Microsoft::WRL::ComPtr when possible 2013-07-26 16:44:00 -07:00
walbourn_cp
70afb86830 DirectXTex: VS 2013 /analyze fix 2013-07-25 16:53:48 -07:00
walbourn_cp
98b4e32ce6 Use of _WIN32_WINNT_WIN8 with compat shim for older Windows SDKs 2013-07-24 16:45:33 -07:00
walbourn_cp
489f4c51ae DirectXTex: Set output directories for DirectXTex library 2013-07-19 23:24:25 -07:00
walbourn_cp
aef1bb0e8d DirectXTex: Minor BC6H / BC7 tweaks
- Minor DirectXMath optimization to error metric computation
- More code review change (Swap -> std::swap)
2013-07-18 23:12:49 -07:00
walbourn_cp
a69fcaa8de DirectXTex: Cleaned up .sln versions 2013-07-12 15:48:41 -07:00
walbourn_cp
3f1f4acfda DirectXTex: BC6H/BC7 had subtle signed/unsigned bug that resulted in incorrect decoding in particular edge cases 2013-07-11 17:36:24 -07:00
walbourn_cp
b610af415e DirectXTex: BC6H / BC 7 handling of invalid mode blocks updated to match the format specs 2013-07-10 10:49:59 -07:00
walbourn_cp
51af8e4af5 DirectXTex: Code Review feedback 2013-07-09 16:16:38 -07:00
walbourn_cp
4c1a8527c1 DirectXTex: Fixed /analyze issues 2013-07-02 15:27:07 -07:00
walbourn_cp
1b92159d63 DirectXTex: Use alternative to CreateStreamOnHGlobal for Windows Store apps 2013-07-02 13:07:56 -07:00
walbourn_cp
a1628e8fd4 DirectXTex/DirectXTK: Updated VS 2013 Preview Windows 8.1 SLNs 2013-07-02 12:55:40 -07:00
walbourn_cp
0aa54a8045 DirectXTex: Workaround to avoid ICE when building VS 2013 preview Debug ARM config 2013-07-02 12:53:52 -07:00
walbourn_cp
bd0b88aa8e DirectXTex: some more /analyze cleanup 2013-07-01 13:30:13 -07:00
walbourn_cp
af675e3c3a DirectXTex: WinRT usage problematic, sticking with CS on HGLBOAL 2013-06-28 22:43:39 -07:00
walbourn_cp
a303eea709 DirectXTex: when building for WinRT, use InMemoryRandomAccessStream instead CreateStreamOnHGlobal 2013-06-27 21:17:46 -07:00
walbourn_cp
887d87bf91 DirectXTex: /analyze cleanup 2013-06-27 16:21:01 -07:00
walbourn_cp
61a0a1a19c SaveToWIC* functions updated with optional setCustomProps parameter for setting custom encoding options 2013-06-27 11:05:15 -07:00
walbourn_cp
bb622bf4ec DirectXTex: Added projects for VS 2013 Preview 2013-06-26 15:22:13 -07:00
walbourn_cp
27c91d3da7 DirectXTex: minor 'return null on failure' fix for CreateTexture/CreateSRV 2013-06-25 12:35:05 -07:00
walbourn_cp
32b06b3e5c DirectXTK/DirectXTex: Minor code review feedback 2013-06-21 14:12:39 -07:00
walbourn_cp
72c9103b1d WIC_USE_FACTORY_PROXY workaround no longer needed. 2013-06-18 14:18:07 -07:00
walbourn_cp
fb6f5aac2e DirectXTex: Integrated some Code Review feedback (no code impact) 2013-06-17 12:32:11 -07:00
walbourn_cp
0678c2b5f9 DirectxTex: Need to slightly bias results floating-point error introduced by TRIANGLE filter
- Avoids problem with harshly quantized formats like 2-bit alpha
- Defaults to TRIANGLE filter for non-pow-2 volume maps
2013-06-15 11:55:07 -07:00
walbourn_cp
2fdf1f6d0a DirectXTex: added finite low-pass triangle custom filter
- TEX_FILTER_TRIANGLE
- texconv updated -if image filter options
2013-06-14 16:17:16 -07:00
walbourn_cp
8fa166372d DirectXTex: Custom filtering (Point, Linear, Cubic, sRGB gamma correct) implemented for Resize 2013-06-12 20:17:43 -07:00
walbourn_cp
7c5c9addf8 DirectXTex: Fixed slight image shift in custom Cubic filtering 2013-06-12 19:54:17 -07:00
walbourn_cp
98699f90f9 DirectXTex: Replace D3DX's table sRGB encoding/decoding with gamma correct implementation 2013-06-12 16:28:11 -07:00
walbourn_cp
bdb7d21088 DirectXTex: Implemented dithering for non-WIC codepaths
- Reworked texconv options for -if for dithering
2013-06-11 13:18:23 -07:00
walbourn_cp
3474bcbab9 DirectXTex: WIC metadata usage
- Check/writes the sRGB information for DXGI_FORMAT_*_SRGB formats
- Updated WICTextureLoader & ScreenGrab
2013-06-10 15:34:13 -07:00
walbourn_cp
8a267b10b2 DirectXTex: some code cleanup 2013-06-10 15:16:08 -07:00
walbourn_cp
ae8a8cfa9a DirectXTex: Added DDS_FLAGS_EXPAND_LUMINANCE support 2013-06-10 15:14:55 -07:00
walbourn_cp
0a6e75fe5a DirectXTex: Convert threshold parameter was not being used correctly
Convert needs to use non-WIC paths for -sepalpha cases
2013-06-07 18:07:08 -07:00
walbourn_cp
76bd58ecb0 DirectXTeX: Removed some debug code that upset /analyze 2013-06-06 18:03:58 -07:00
walbourn_cp
a9c0c4320e DirectXTex: sRGB correct filtering for mipmap generation 2013-06-06 17:58:23 -07:00
walbourn_cp
0853752b5d DirectXTex: code review feedback 2013-06-06 16:22:07 -07:00
walbourn_cp
4e1e8b49c1 DirectXTex: non-power-of-2 error should be in 2DBox, not 2DPoint 2013-06-06 14:46:28 -07:00
walbourn_cp
cc6da6ef25 DirectXTex: added filters.h 2013-06-06 14:03:31 -07:00
walbourn_cp
5264ae6503 DirectXTex: 2D & 3D linear and cubic filtering with optional mirror/wrap vs. clamp 2013-06-06 14:02:17 -07:00
walbourn_cp
add7763d9c DirectXTex: Added TEX_FILTER_BOX (which is an alias for FANT) 2013-06-03 15:32:00 -07:00
walbourn_cp
f6cace44e8 DirectXTex: Minor code cleanup 2013-06-03 15:11:47 -07:00
walbourn_cp
5fd613b1fb DirectXTex: Added BitsPerColor DXGI utility function 2013-06-03 14:41:16 -07:00
walbourn_cp
24ead31a39 Added error check to SaveWIC functions if requested optional targetFormat is not supported by the WIC codec 2013-06-01 10:55:18 -07:00
walbourn_cp
6323465f1f DirectXTex: Special-case optimization when doing RGBA 32bpp resize or 2D mipmap generation 2013-04-30 15:25:26 -07:00
walbourn_cp
598fedaf35 DirectXTex: partial typeless support for _LoadScanline 2013-04-29 17:43:13 -07:00
walbourn_cp
11cafa387d Minor whitespace fix 2013-04-26 16:02:53 -07:00
walbourn_cp
e95ffd151d DirectXTex: cleanup of volume map custom point/box filters 2013-04-26 15:11:42 -07:00
walbourn_cp
c398ac1711 DirectXTex: Resolve SRGB handling problems with conversions
- Convert: TEX_FILTER_FORCE_NON_WIC, TEX_FILTER_FORCE_WIC, TEX_FILTER_RGB_COPY_RED/BLUE/GREEN
 - ComputeMSE flags for sRGB colorspace and channel ignore options
2013-04-16 17:51:36 -07:00
walbourn_cp
33db361592 Update DDS alpha mode metadata
- Make alpha mode 3 bits instead of 2
- Rename 4TH_CHANNEL to CUSTOM
- Reorder enum
2013-04-11 15:23:54 -07:00
walbourn_cp
dc401291a1 VS 2012 and VS 2010+SDK8.0 projects don't use <xnamath.h>, they use DirectXMath
Fixed DDSView to use DirectXMath when it should
2013-04-10 23:37:19 -07:00
walbourn_cp
ec03b62e6d DirectXTex - WIC 32bpp RGBE is 8:8:8:8, not the same as DXGI SHAREDEXP 9:9:9:5
- Fixed LoadScanline/StoreScanline for SHAREDEXP, X2_BIAS, and R1
2013-04-10 18:11:47 -07:00
walbourn_cp
e4e6c6c008 DirectXTex: Code review feedback
- /analyze work focused on VS 2012 with SAL2 rather than VS 2010
2013-04-10 11:22:22 -07:00
walbourn_cp
91654fc9df Fixed bug with non-square volume mipmaps 2013-04-04 11:27:05 -07:00
walbourn_cp
991b325f10 Code review feedback 2013-03-28 00:14:06 -07:00
walbourn_cp
0d382fbe25 DirectXTex updated to read & write new miscFlags2 alpha mode metadata for DDS files
- Added helper to see if a texure's alpha channel is all opaque
- Reads and writes DXT2 and DXT4 DDS files
- Updated PremultiplyAlpha function to set miscFlags2 appropriately
- Texconv updated for new feature, "-dx10" switch now allows write of miscFlags2 data
2013-03-22 17:52:43 -07:00
walbourn_cp
87880558bb Use no-throw new so out-of-memory returns an HRESULT; minor /analyze fix 2013-03-20 14:12:40 -07:00
walbourn_cp
6a5470b27f Explicitly name the DirectXTK .pdb output files.
Otherwise they just get a default name of eg. vs100.pdb, which causes conflicts for who people want to copy the output .lib + .pdb into a common folder that also contains the outputs from other projects.
2013-02-15 18:54:50 -08:00
walbourn_cp
2bdd90ddfc Added WIC_USE_FACTORY_PROXY build option to use entry-point in WindowsCodecs.dll rather than CoCreateInstance for the WIC factory 2013-02-03 16:06:01 -08:00
walbourn_cp
5e0eaf8df2 CreateTextureEx/CreateShaderResourceViewEx: Fixed forceSRGB logic (DirectXTK Codeplex issue 851) 2013-01-28 14:28:46 -08:00
walbourn_cp
171f49b741 DirectXTex: Minor code review fixes 2013-01-08 13:15:48 -08:00
walbourn_cp
9e6ea1f910 DirectXTex: Updated with PremultiplyAlpha function
Texconv: added -pmalpha switch
2012-12-13 12:12:35 -08:00
walbourn_cp
db135329b2 DirectXTex: Add 'forceSRGB' option to Ex versions of CreateSRV, DDSTextureLoader, & WICTextureLoader 2012-12-11 12:24:03 -08:00
walbourn_cp
cee58c4aed DirectXTex: Added VS 2010+Windows SDK 8.0 projects; updated to use SAL2 annotation 2012-12-07 17:30:49 -08:00
walbourn_cp
e3959f5327 DirectXTex: fixed incorrect unusual case when decoding BC2 and BC3 formats 2012-12-07 14:34:34 -08:00
walbourn_cp
b2b279fbb1 DirectXTex: added Ex versions of CreateTexture and CreateShaderResource for advanced / expert scenarios 2012-11-30 13:10:48 -08:00
walbourn_cp
72a1f29d1f DirectXTex: WIC2 support for ScreenGrab & WICTextureLoader 2012-11-14 14:09:35 -08:00
walbourn_cp
6a905106f2 DirectXTex: Added WIC2 support for downlevel builds to support Windows 8 and Windows 7 with KB 2670838 isntalled 2012-11-13 18:33:01 -08:00
walbourn_cp
a8fb2168c9 DirectXTex: Fixed bad assert in BC7 CPU compressor 2012-11-13 18:10:47 -08:00
walbourn_cp
42e9ba96a3 DirectXTex/DirectXTK: Extra validation and typeless handling for capturing MSAA textures 2012-10-18 15:23:51 -07:00
walbourn_cp
1425425b35 Minor /analyze warning fix 2012-10-18 13:48:47 -07:00
walbourn_cp
cac1a2b2fa DirectXTex: Fix for correctly writing valid 1D files 2012-10-18 11:36:11 -07:00
walbourn_cp
28faae7447 DirectxTex: added optional targetFormat parameter to WIC save routines to control choice of output format 2012-10-04 14:48:14 -07:00
walbourn_cp
8a96db2581 Rename projects and solutions to a standard naming convention 2012-09-28 16:28:30 -07:00
walbourn_cp
5472168735 WriteSource WIC API simplifies WIC writer a bit 2012-09-28 11:16:45 -07:00
walbourn_cp
61571870ae Texconv: Now supports -tu and -tf options for coping with "TYPELESS" DDS files
DirectXTex: new 'typeless' DXGI utilities
2012-07-02 13:31:12 -07:00
walbourn_cp
aa604a531c DirectXTex updated to use XNAMath 2.05 instead of 2.04 for USE_XNAMATH builds 2012-06-22 12:14:10 -07:00
walbourn_cp
fe9bb94d6c DirectXTex: fixed color order for 24bpp legacy DDS file expansions 2012-06-21 18:24:33 -07:00
walbourn_cp
37a80354e3 - DirectXTex WIC image loading and WICTextureLoader updated with some additional 96bpp float format handling on Windows 8 2012-06-10 14:23:37 -07:00
walbourn_cp
1c216b2a58 Cleaned up some preprocessor defines; added Metro style app project files 2012-05-24 17:13:37 -07:00
walbourn_cp
9aefde4d9f DirectXTex - cleaned up /analyze issues 2012-05-23 17:57:47 -07:00
walbourn_cp
a6c5c5939a April 20, 2012 source 2012-05-01 13:00:24 -07:00