mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-19 10:31:07 +00:00
Persist texture save config between saves. Refs #862
This commit is contained in:
3 files changed
+33
-37
No files matched your search
@@ -277,9 +277,9 @@ DOCUMENT("How to map components to normalised ``[0, 255]`` for saving to 8-bit f
|
||||
struct TextureComponentMapping
|
||||
{
|
||||
DOCUMENT("The value that should be mapped to ``0``");
|
||||
float blackPoint;
|
||||
float blackPoint = 0.0f;
|
||||
DOCUMENT("The value that should be mapped to ``255``");
|
||||
float whitePoint;
|
||||
float whitePoint = 1.0f;
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(TextureComponentMapping);
|
||||
@@ -325,7 +325,7 @@ Selects the (depth/array) slice to save.
|
||||
If this is -1, then all slices are written out as detailed below. This is only supported in formats
|
||||
that don't support slices natively, and will be done in RGBA8.
|
||||
)");
|
||||
int32_t sliceIndex;
|
||||
int32_t sliceIndex = -1;
|
||||
|
||||
// write out the slices as a 2D grid, with the below
|
||||
// width. Any empty slices are writted as (0,0,0,0)
|
||||
@@ -333,10 +333,10 @@ that don't support slices natively, and will be done in RGBA8.
|
||||
If ``True``, write out the slices as a 2D grid with the width given in :data:`sliceGridWidth`. Any
|
||||
empty slices in the grid are written as transparent black.
|
||||
)");
|
||||
bool slicesAsGrid;
|
||||
bool slicesAsGrid = false;
|
||||
|
||||
DOCUMENT("The width of a grid if :data:`slicesAsGrid` is ``True``.");
|
||||
int32_t sliceGridWidth;
|
||||
int32_t sliceGridWidth = 1;
|
||||
|
||||
DOCUMENT(R"(Write out 6 slices in a cruciform pattern::
|
||||
|
||||
@@ -353,7 +353,7 @@ empty slices in the grid are written as transparent black.
|
||||
|
||||
With the gaps filled in with transparent black.
|
||||
)");
|
||||
bool cubeCruciform;
|
||||
bool cubeCruciform = false;
|
||||
};
|
||||
|
||||
DECLARE_REFLECTION_STRUCT(TextureSliceMapping);
|
||||
@@ -365,10 +365,10 @@ struct TextureSave
|
||||
ResourceId id;
|
||||
|
||||
DOCUMENT("An optional :class:`CompType` hint to use when saving a typeless texture.");
|
||||
CompType typeHint;
|
||||
CompType typeHint = CompType::Typeless;
|
||||
|
||||
DOCUMENT("The :class:`FileType` to use when saving to the destination file.");
|
||||
FileType destType;
|
||||
FileType destType = FileType::DDS;
|
||||
|
||||
// mip == -1 writes out all mips where allowed by file format
|
||||
// or writes mip 0 otherwise
|
||||
@@ -377,7 +377,7 @@ struct TextureSave
|
||||
If set to ``-1`` then all mips are written, where allowed by file format. If not allowed, mip 0 is
|
||||
written
|
||||
)");
|
||||
int32_t mip;
|
||||
int32_t mip = -1;
|
||||
|
||||
DOCUMENT(R"(Controls black/white point mapping for output formats that are normal
|
||||
:attr:`8-bit SRGB <CompType.UNorm>`, values are
|
||||
@@ -391,7 +391,7 @@ written
|
||||
TextureSliceMapping slice;
|
||||
|
||||
DOCUMENT("Selects a single component out of a texture to save as grayscale, or -1 to save all.");
|
||||
int channelExtract;
|
||||
int channelExtract = -1;
|
||||
|
||||
// for formats without an alpha channel, define how it should be
|
||||
// mapped. Only available for uncompressed simple formats, done
|
||||
@@ -401,7 +401,7 @@ alpha.
|
||||
|
||||
It is an :class:`AlphaMapping` that controls what behaviour to use.
|
||||
)");
|
||||
AlphaMapping alpha;
|
||||
AlphaMapping alpha = AlphaMapping::Preserve;
|
||||
|
||||
DOCUMENT("The background color if :data:`alpha` is set to :attr:`AlphaMapping.BlendToColor`");
|
||||
FloatVector alphaCol;
|
||||
|
||||
Reference in new issue
Block a user