Fix a number of warnings identified by higher clang warning levels

* We enable a couple of high signal-to-noise warnings in all clang builds
This commit is contained in:
baldurk
2019-12-02 20:41:28 +00:00
parent 759926493b
commit 6d1d302491
69 changed files with 482 additions and 405 deletions
+2 -2
View File
@@ -293,12 +293,12 @@ protected:
#endif
return ret;
}
static void deallocate(const T *p)
static void deallocate(T *p)
{
#ifdef RENDERDOC_EXPORTS
free((void *)p);
#else
RENDERDOC_FreeArrayMem((const void *)p);
RENDERDOC_FreeArrayMem((void *)p);
#endif
}
+2 -2
View File
@@ -48,7 +48,7 @@ struct CaptureOptions
{
rdcstr optstr;
optstr.reserve(sizeof(CaptureOptions) * 2 + 1);
byte *b = (byte *)this;
const byte *b = (const byte *)this;
for(size_t i = 0; i < sizeof(CaptureOptions); i++)
{
optstr.push_back(char('a' + ((b[i] >> 4) & 0xf)));
@@ -67,7 +67,7 @@ struct CaptureOptions
// serialise from string with two chars per byte
byte *b = (byte *)this;
for(size_t i = 0; i < sizeof(CaptureOptions); i++)
*(b++) = (byte(str[i * 2 + 0] - 'a') << 4) | byte(str[i * 2 + 1] - 'a');
*(b++) = byte(((byte(str[i * 2 + 0] - 'a') & 0xf) << 4) | (byte(str[i * 2 + 1] - 'a') & 0xf));
}
DOCUMENT(R"(Allow the application to enable vsync.
+10
View File
@@ -36,6 +36,7 @@ struct Viewport
{
}
Viewport(const Viewport &) = default;
Viewport &operator=(const Viewport &) = default;
bool operator==(const Viewport &o) const
{
@@ -86,6 +87,7 @@ struct Scissor
{
}
Scissor(const Scissor &) = default;
Scissor &operator=(const Scissor &) = default;
bool operator==(const Scissor &o) const
{
@@ -125,6 +127,7 @@ struct BlendEquation
DOCUMENT("");
BlendEquation() = default;
BlendEquation(const BlendEquation &) = default;
BlendEquation &operator=(const BlendEquation &) = default;
bool operator==(const BlendEquation &o) const
{
@@ -156,6 +159,7 @@ struct ColorBlend
DOCUMENT("");
ColorBlend() = default;
ColorBlend(const ColorBlend &) = default;
ColorBlend &operator=(const ColorBlend &) = default;
bool operator==(const ColorBlend &o) const
{
@@ -206,6 +210,7 @@ struct StencilFace
DOCUMENT("");
StencilFace() = default;
StencilFace(const StencilFace &) = default;
StencilFace &operator=(const StencilFace &) = default;
DOCUMENT("The :class:`StencilOperation` to apply if the stencil-test fails.");
StencilOperation failOperation = StencilOperation::Keep;
@@ -246,6 +251,7 @@ struct BoundResource
typeCast = CompType::Typeless;
}
BoundResource(const BoundResource &) = default;
BoundResource &operator=(const BoundResource &) = default;
bool operator==(const BoundResource &o) const
{
@@ -292,6 +298,7 @@ struct BoundResourceArray
DOCUMENT("");
BoundResourceArray() = default;
BoundResourceArray(const BoundResourceArray &) = default;
BoundResourceArray &operator=(const BoundResourceArray &) = default;
BoundResourceArray(Bindpoint b) : bindPoint(b) {}
BoundResourceArray(Bindpoint b, const rdcarray<BoundResource> &r) : bindPoint(b), resources(r)
{
@@ -323,6 +330,7 @@ struct BoundVBuffer
DOCUMENT("");
BoundVBuffer() = default;
BoundVBuffer(const BoundVBuffer &) = default;
BoundVBuffer &operator=(const BoundVBuffer &) = default;
bool operator==(const BoundVBuffer &o) const
{
@@ -354,6 +362,7 @@ struct BoundCBuffer
DOCUMENT("");
BoundCBuffer() = default;
BoundCBuffer(const BoundCBuffer &) = default;
BoundCBuffer &operator=(const BoundCBuffer &) = default;
DOCUMENT("A :class:`~renderdoc.ResourceId` identifying the buffer.");
ResourceId resourceId;
@@ -371,6 +380,7 @@ struct VertexInputAttribute
DOCUMENT("");
VertexInputAttribute() = default;
VertexInputAttribute(const VertexInputAttribute &) = default;
VertexInputAttribute &operator=(const VertexInputAttribute &) = default;
bool operator==(const VertexInputAttribute &o) const
{
+16
View File
@@ -51,6 +51,7 @@ struct MeshFormat
restartIndex = 0xffffffff;
}
MeshFormat(const MeshFormat &o) = default;
MeshFormat &operator=(const MeshFormat &) = default;
DOCUMENT("The :class:`ResourceId` of the index buffer that goes with this mesh element.");
ResourceId indexResourceId;
@@ -119,6 +120,7 @@ struct MeshDisplay
DOCUMENT("");
MeshDisplay() = default;
MeshDisplay(const MeshDisplay &) = default;
MeshDisplay &operator=(const MeshDisplay &) = default;
DOCUMENT("The :class:`MeshDataStage` where this mesh data comes from.");
MeshDataStage type;
@@ -194,6 +196,7 @@ struct TextureDisplay
DOCUMENT("");
TextureDisplay() = default;
TextureDisplay(const TextureDisplay &) = default;
TextureDisplay &operator=(const TextureDisplay &) = default;
DOCUMENT("The :class:`ResourceId` of the texture to display.");
ResourceId resourceId;
@@ -305,6 +308,7 @@ struct TextureComponentMapping
DOCUMENT("");
TextureComponentMapping() = default;
TextureComponentMapping(const TextureComponentMapping &) = default;
TextureComponentMapping &operator=(const TextureComponentMapping &) = default;
DOCUMENT("The value that should be mapped to ``0``");
float blackPoint = 0.0f;
@@ -325,6 +329,7 @@ struct TextureSampleMapping
DOCUMENT("");
TextureSampleMapping() = default;
TextureSampleMapping(const TextureSampleMapping &) = default;
TextureSampleMapping &operator=(const TextureSampleMapping &) = default;
DOCUMENT(R"(
``True`` if the samples should be mapped to array slices. A multisampled array expands each slice
@@ -356,6 +361,7 @@ struct TextureSliceMapping
DOCUMENT("");
TextureSliceMapping() = default;
TextureSliceMapping(const TextureSliceMapping &) = default;
TextureSliceMapping &operator=(const TextureSliceMapping &) = default;
DOCUMENT(R"(
Selects the (depth/array) slice to save.
@@ -402,6 +408,7 @@ struct TextureSave
DOCUMENT("");
TextureSave() = default;
TextureSave(const TextureSave &) = default;
TextureSave &operator=(const TextureSave &) = default;
DOCUMENT("The :class:`ResourceId` of the texture to save.");
ResourceId resourceId;
@@ -466,6 +473,7 @@ struct NewCaptureData
DOCUMENT("");
NewCaptureData() = default;
NewCaptureData(const NewCaptureData &) = default;
NewCaptureData &operator=(const NewCaptureData &) = default;
DOCUMENT("An identifier to use to refer to this capture.");
uint32_t captureId = 0;
@@ -499,6 +507,7 @@ struct APIUseData
DOCUMENT("");
APIUseData() = default;
APIUseData(const APIUseData &) = default;
APIUseData &operator=(const APIUseData &) = default;
DOCUMENT("The name of the API.");
rdcstr name;
@@ -518,6 +527,7 @@ struct BusyData
DOCUMENT("");
BusyData() = default;
BusyData(const BusyData &) = default;
BusyData &operator=(const BusyData &) = default;
DOCUMENT("The name of the client currently connected to the target.");
rdcstr clientName;
@@ -531,6 +541,7 @@ struct NewChildData
DOCUMENT("");
NewChildData() = default;
NewChildData(const NewChildData &) = default;
NewChildData &operator=(const NewChildData &) = default;
DOCUMENT("The PID (Process ID) of the new child.");
uint32_t processId = 0;
@@ -546,6 +557,7 @@ struct TargetControlMessage
DOCUMENT("");
TargetControlMessage() = default;
TargetControlMessage(const TargetControlMessage &) = default;
TargetControlMessage &operator=(const TargetControlMessage &) = default;
DOCUMENT("The :class:`type <TargetControlMessageType>` of message received");
TargetControlMessageType type = TargetControlMessageType::Unknown;
@@ -581,6 +593,7 @@ struct EnvironmentModification
: mod(m), sep(s), name(n), value(v)
{
}
EnvironmentModification &operator=(const EnvironmentModification &) = default;
bool operator==(const EnvironmentModification &o) const
{
@@ -616,6 +629,7 @@ struct CaptureFileFormat
DOCUMENT("");
CaptureFileFormat() = default;
CaptureFileFormat(const CaptureFileFormat &) = default;
CaptureFileFormat &operator=(const CaptureFileFormat &) = default;
bool operator==(const CaptureFileFormat &o) const
{
@@ -671,6 +685,7 @@ struct GPUDevice
DOCUMENT("");
GPUDevice() = default;
GPUDevice(const GPUDevice &) = default;
GPUDevice &operator=(const GPUDevice &) = default;
bool operator==(const GPUDevice &o) const
{
@@ -709,6 +724,7 @@ struct ReplayOptions
DOCUMENT("");
ReplayOptions() = default;
ReplayOptions(const ReplayOptions &) = default;
ReplayOptions &operator=(const ReplayOptions &) = default;
DOCUMENT(R"(Replay with API validation enabled and use debug messages from there, ignoring any
that may be contained in the capture.
+16
View File
@@ -41,6 +41,7 @@ struct Layout
DOCUMENT("");
Layout() = default;
Layout(const Layout &) = default;
Layout &operator=(const Layout &) = default;
bool operator==(const Layout &o) const
{
@@ -107,6 +108,7 @@ struct VertexBuffer
DOCUMENT("");
VertexBuffer() = default;
VertexBuffer(const VertexBuffer &) = default;
VertexBuffer &operator=(const VertexBuffer &) = default;
bool operator==(const VertexBuffer &o) const
{
@@ -138,6 +140,7 @@ struct IndexBuffer
DOCUMENT("");
IndexBuffer() = default;
IndexBuffer(const IndexBuffer &) = default;
IndexBuffer &operator=(const IndexBuffer &) = default;
DOCUMENT("The :class:`ResourceId` of the index buffer.");
ResourceId resourceId;
@@ -152,6 +155,7 @@ struct InputAssembly
DOCUMENT("");
InputAssembly() = default;
InputAssembly(const InputAssembly &) = default;
InputAssembly &operator=(const InputAssembly &) = default;
DOCUMENT("A list of :class:`D3D11Layout` describing the input layout elements in this layout.");
rdcarray<Layout> layouts;
@@ -175,6 +179,7 @@ struct View
DOCUMENT("");
View() = default;
View(const View &) = default;
View &operator=(const View &) = default;
bool operator==(const View &o) const
{
@@ -270,6 +275,7 @@ struct Sampler
DOCUMENT("");
Sampler() = default;
Sampler(const Sampler &) = default;
Sampler &operator=(const Sampler &) = default;
bool operator==(const Sampler &o) const
{
@@ -353,6 +359,7 @@ struct ConstantBuffer
DOCUMENT("");
ConstantBuffer() = default;
ConstantBuffer(const ConstantBuffer &) = default;
ConstantBuffer &operator=(const ConstantBuffer &) = default;
bool operator==(const ConstantBuffer &o) const
{
@@ -390,6 +397,7 @@ struct Shader
DOCUMENT("");
Shader() = default;
Shader(const Shader &) = default;
Shader &operator=(const Shader &) = default;
DOCUMENT("The :class:`ResourceId` of the shader itself.");
ResourceId resourceId;
@@ -426,6 +434,7 @@ struct StreamOutBind
DOCUMENT("");
StreamOutBind() = default;
StreamOutBind(const StreamOutBind &) = default;
StreamOutBind &operator=(const StreamOutBind &) = default;
bool operator==(const StreamOutBind &o) const
{
@@ -452,6 +461,7 @@ struct StreamOut
DOCUMENT("");
StreamOut() = default;
StreamOut(const StreamOut &) = default;
StreamOut &operator=(const StreamOut &) = default;
DOCUMENT("A list of ``D3D11StreamOutBind`` with the bound buffers.");
rdcarray<StreamOutBind> outputs;
@@ -463,6 +473,7 @@ struct RasterizerState
DOCUMENT("");
RasterizerState() = default;
RasterizerState(const RasterizerState &) = default;
RasterizerState &operator=(const RasterizerState &) = default;
DOCUMENT("The :class:`ResourceId` of the rasterizer state object.");
ResourceId resourceId;
@@ -506,6 +517,7 @@ struct Rasterizer
DOCUMENT("");
Rasterizer() = default;
Rasterizer(const Rasterizer &) = default;
Rasterizer &operator=(const Rasterizer &) = default;
DOCUMENT("A list of :class:`Viewport` with the bound viewports.");
rdcarray<Viewport> viewports;
@@ -523,6 +535,7 @@ struct DepthStencilState
DOCUMENT("");
DepthStencilState() = default;
DepthStencilState(const DepthStencilState &) = default;
DepthStencilState &operator=(const DepthStencilState &) = default;
DOCUMENT("The :class:`ResourceId` of the depth-stencil state object.");
ResourceId resourceId;
@@ -547,6 +560,7 @@ struct BlendState
DOCUMENT("");
BlendState() = default;
BlendState(const BlendState &) = default;
BlendState &operator=(const BlendState &) = default;
DOCUMENT("The :class:`ResourceId` of the blend state object.");
ResourceId resourceId;
@@ -574,6 +588,7 @@ struct OutputMerger
DOCUMENT("");
OutputMerger() = default;
OutputMerger(const OutputMerger &) = default;
OutputMerger &operator=(const OutputMerger &) = default;
DOCUMENT("A :class:`D3D11DepthStencilState` with the details of the depth-stencil state.");
DepthStencilState depthStencilState;
@@ -602,6 +617,7 @@ struct Predication
DOCUMENT("");
Predication() = default;
Predication(const Predication &) = default;
Predication &operator=(const Predication &) = default;
DOCUMENT("The :class:`ResourceId` of the active predicate.");
ResourceId resourceId;
+18
View File
@@ -40,6 +40,7 @@ struct Layout
DOCUMENT("");
Layout() = default;
Layout(const Layout &) = default;
Layout &operator=(const Layout &) = default;
bool operator==(const Layout &o) const
{
@@ -106,6 +107,7 @@ struct VertexBuffer
DOCUMENT("");
VertexBuffer() = default;
VertexBuffer(const VertexBuffer &) = default;
VertexBuffer &operator=(const VertexBuffer &) = default;
bool operator==(const VertexBuffer &o) const
{
@@ -143,6 +145,7 @@ struct IndexBuffer
DOCUMENT("");
IndexBuffer() = default;
IndexBuffer(const IndexBuffer &) = default;
IndexBuffer &operator=(const IndexBuffer &) = default;
DOCUMENT("The :class:`ResourceId` of the index buffer.");
ResourceId resourceId;
@@ -160,6 +163,7 @@ struct InputAssembly
DOCUMENT("");
InputAssembly() = default;
InputAssembly(const InputAssembly &) = default;
InputAssembly &operator=(const InputAssembly &) = default;
DOCUMENT("A list of :class:`D3D12Layout` describing the input layout elements in this layout.");
rdcarray<Layout> layouts;
@@ -185,6 +189,7 @@ struct View
DOCUMENT("");
View() = default;
View(const View &) = default;
View &operator=(const View &) = default;
bool operator==(const View &o) const
{
@@ -292,6 +297,7 @@ struct Sampler
DOCUMENT("");
Sampler() = default;
Sampler(const Sampler &) = default;
Sampler &operator=(const Sampler &) = default;
bool operator==(const Sampler &o) const
{
@@ -385,6 +391,7 @@ struct ConstantBuffer
DOCUMENT("");
ConstantBuffer() = default;
ConstantBuffer(const ConstantBuffer &) = default;
ConstantBuffer &operator=(const ConstantBuffer &) = default;
bool operator==(const ConstantBuffer &o) const
{
@@ -436,6 +443,7 @@ struct RegisterSpace
DOCUMENT("");
RegisterSpace() = default;
RegisterSpace(const RegisterSpace &) = default;
RegisterSpace &operator=(const RegisterSpace &) = default;
bool operator==(const RegisterSpace &o) const
{
@@ -474,6 +482,7 @@ struct Shader
DOCUMENT("");
Shader() = default;
Shader(const Shader &) = default;
Shader &operator=(const Shader &) = default;
DOCUMENT("The :class:`ResourceId` of the shader object itself.");
ResourceId resourceId;
@@ -512,6 +521,7 @@ struct StreamOutBind
DOCUMENT("");
StreamOutBind() = default;
StreamOutBind(const StreamOutBind &) = default;
StreamOutBind &operator=(const StreamOutBind &) = default;
bool operator==(const StreamOutBind &o) const
{
@@ -556,6 +566,7 @@ struct StreamOut
DOCUMENT("");
StreamOut() = default;
StreamOut(const StreamOut &) = default;
StreamOut &operator=(const StreamOut &) = default;
DOCUMENT("A list of ``D3D12SOBind`` with the bound buffers.");
rdcarray<StreamOutBind> outputs;
@@ -567,6 +578,7 @@ struct RasterizerState
DOCUMENT("");
RasterizerState() = default;
RasterizerState(const RasterizerState &) = default;
RasterizerState &operator=(const RasterizerState &) = default;
DOCUMENT("The polygon :class:`FillMode`.");
FillMode fillMode = FillMode::Solid;
@@ -606,6 +618,7 @@ struct Rasterizer
DOCUMENT("");
Rasterizer() = default;
Rasterizer(const Rasterizer &) = default;
Rasterizer &operator=(const Rasterizer &) = default;
DOCUMENT("The mask determining which samples are written to.");
uint32_t sampleMask = ~0U;
@@ -626,6 +639,7 @@ struct DepthStencilState
DOCUMENT("");
DepthStencilState() = default;
DepthStencilState(const DepthStencilState &) = default;
DepthStencilState &operator=(const DepthStencilState &) = default;
DOCUMENT("``True`` if depth testing should be performed.");
bool depthEnable = false;
@@ -655,6 +669,7 @@ struct BlendState
DOCUMENT("");
BlendState() = default;
BlendState(const BlendState &) = default;
BlendState &operator=(const BlendState &) = default;
DOCUMENT("``True`` if alpha-to-coverage should be used when blending to an MSAA target.");
bool alphaToCoverage = false;
@@ -677,6 +692,7 @@ struct OM
DOCUMENT("");
OM() = default;
OM(const OM &) = default;
OM &operator=(const OM &) = default;
DOCUMENT("A :class:`D3D12DepthStencilState` with the details of the depth-stencil state.");
DepthStencilState depthStencilState;
@@ -705,6 +721,7 @@ struct ResourceState
DOCUMENT("");
ResourceState() = default;
ResourceState(const ResourceState &) = default;
ResourceState &operator=(const ResourceState &) = default;
bool operator==(const ResourceState &o) const { return name == o.name; }
bool operator<(const ResourceState &o) const
@@ -723,6 +740,7 @@ struct ResourceData
DOCUMENT("");
ResourceData() = default;
ResourceData(const ResourceData &) = default;
ResourceData &operator=(const ResourceData &) = default;
bool operator==(const ResourceData &o) const
{
+41
View File
@@ -34,6 +34,7 @@ struct FloatVector
FloatVector() : x(0.0f), y(0.0f), z(0.0f), w(0.0f) {}
FloatVector(const FloatVector &) = default;
FloatVector(float X, float Y, float Z, float W) : x(X), y(Y), z(Z), w(W) {}
FloatVector &operator=(const FloatVector &) = default;
#if defined(RENDERDOC_QT_COMPAT)
FloatVector(const QColor &col) : x(col.redF()), y(col.greenF()), z(col.blueF()), w(col.alphaF())
{
@@ -75,6 +76,7 @@ struct PathEntry
PathEntry() : flags(PathProperty::NoFlags), lastmod(0), size(0) {}
PathEntry(const PathEntry &) = default;
PathEntry(const char *fn, PathProperty f) : filename(fn), flags(f), lastmod(0), size(0) {}
PathEntry &operator=(const PathEntry &) = default;
bool operator==(const PathEntry &o) const
{
return filename == o.filename && flags == o.flags && lastmod == o.lastmod && size == o.size;
@@ -112,6 +114,7 @@ struct SectionProperties
DOCUMENT("");
SectionProperties() = default;
SectionProperties(const SectionProperties &) = default;
SectionProperties &operator=(const SectionProperties &) = default;
DOCUMENT("The name of this section.");
rdcstr name;
@@ -154,6 +157,7 @@ struct ResourceFormat
flags = 0;
}
ResourceFormat(const ResourceFormat &) = default;
ResourceFormat &operator=(const ResourceFormat &) = default;
bool operator==(const ResourceFormat &r) const
{
@@ -386,6 +390,7 @@ struct TextureFilter
DOCUMENT("");
TextureFilter() = default;
TextureFilter(const TextureFilter &) = default;
TextureFilter &operator=(const TextureFilter &) = default;
bool operator==(const TextureFilter &o) const
{
@@ -421,6 +426,7 @@ struct ResourceDescription
DOCUMENT("");
ResourceDescription() = default;
ResourceDescription(const ResourceDescription &) = default;
ResourceDescription &operator=(const ResourceDescription &) = default;
bool operator==(const ResourceDescription &o) const { return resourceId == o.resourceId; }
bool operator<(const ResourceDescription &o) const { return resourceId < o.resourceId; }
@@ -481,6 +487,7 @@ struct BufferDescription
DOCUMENT("");
BufferDescription() = default;
BufferDescription(const BufferDescription &) = default;
BufferDescription &operator=(const BufferDescription &) = default;
bool operator==(const BufferDescription &o) const
{
@@ -520,6 +527,7 @@ struct TextureDescription
DOCUMENT("");
TextureDescription() = default;
TextureDescription(const TextureDescription &) = default;
TextureDescription &operator=(const TextureDescription &) = default;
bool operator==(const TextureDescription &o) const
{
@@ -612,6 +620,7 @@ struct APIEvent
DOCUMENT("");
APIEvent() = default;
APIEvent(const APIEvent &) = default;
APIEvent &operator=(const APIEvent &) = default;
bool operator==(const APIEvent &o) const { return eventId == o.eventId; }
bool operator<(const APIEvent &o) const { return eventId < o.eventId; }
@@ -653,6 +662,7 @@ struct DebugMessage
DOCUMENT("");
DebugMessage() = default;
DebugMessage(const DebugMessage &) = default;
DebugMessage &operator=(const DebugMessage &) = default;
bool operator==(const DebugMessage &o) const
{
@@ -730,6 +740,7 @@ struct ConstantBindStats
DOCUMENT("");
ConstantBindStats() = default;
ConstantBindStats(const ConstantBindStats &) = default;
ConstantBindStats &operator=(const ConstantBindStats &) = default;
static const BucketRecordType BucketType = BucketRecordType::Pow2;
static const size_t BucketCount = 31;
@@ -758,6 +769,7 @@ struct SamplerBindStats
DOCUMENT("");
SamplerBindStats() = default;
SamplerBindStats(const SamplerBindStats &) = default;
SamplerBindStats &operator=(const SamplerBindStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -780,6 +792,7 @@ struct ResourceBindStats
DOCUMENT("");
ResourceBindStats() = default;
ResourceBindStats(const ResourceBindStats &) = default;
ResourceBindStats &operator=(const ResourceBindStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -817,6 +830,7 @@ struct ResourceUpdateStats
DOCUMENT("");
ResourceUpdateStats() = default;
ResourceUpdateStats(const ResourceUpdateStats &) = default;
ResourceUpdateStats &operator=(const ResourceUpdateStats &) = default;
static const BucketRecordType BucketType = BucketRecordType::Pow2;
static const size_t BucketCount = 31;
@@ -861,6 +875,7 @@ struct DrawcallStats
DOCUMENT("");
DrawcallStats() = default;
DrawcallStats(const DrawcallStats &) = default;
DrawcallStats &operator=(const DrawcallStats &) = default;
static const BucketRecordType BucketType = BucketRecordType::Linear;
static const size_t BucketSize = 1;
@@ -885,6 +900,7 @@ struct DispatchStats
DOCUMENT("");
DispatchStats() = default;
DispatchStats(const DispatchStats &) = default;
DispatchStats &operator=(const DispatchStats &) = default;
DOCUMENT("How many dispatch calls were made.");
uint32_t calls;
@@ -901,6 +917,7 @@ struct IndexBindStats
DOCUMENT("");
IndexBindStats() = default;
IndexBindStats(const IndexBindStats &) = default;
IndexBindStats &operator=(const IndexBindStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -920,6 +937,7 @@ struct VertexBindStats
DOCUMENT("");
VertexBindStats() = default;
VertexBindStats(const VertexBindStats &) = default;
VertexBindStats &operator=(const VertexBindStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -943,6 +961,7 @@ struct LayoutBindStats
DOCUMENT("");
LayoutBindStats() = default;
LayoutBindStats(const LayoutBindStats &) = default;
LayoutBindStats &operator=(const LayoutBindStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -962,6 +981,7 @@ struct ShaderChangeStats
DOCUMENT("");
ShaderChangeStats() = default;
ShaderChangeStats(const ShaderChangeStats &) = default;
ShaderChangeStats &operator=(const ShaderChangeStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -984,6 +1004,7 @@ struct BlendStats
DOCUMENT("");
BlendStats() = default;
BlendStats(const BlendStats &) = default;
BlendStats &operator=(const BlendStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -1006,6 +1027,7 @@ struct DepthStencilStats
DOCUMENT("");
DepthStencilStats() = default;
DepthStencilStats(const DepthStencilStats &) = default;
DepthStencilStats &operator=(const DepthStencilStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -1028,6 +1050,7 @@ struct RasterizationStats
DOCUMENT("");
RasterizationStats() = default;
RasterizationStats(const RasterizationStats &) = default;
RasterizationStats &operator=(const RasterizationStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -1056,6 +1079,7 @@ struct OutputTargetStats
DOCUMENT("");
OutputTargetStats() = default;
OutputTargetStats(const OutputTargetStats &) = default;
OutputTargetStats &operator=(const OutputTargetStats &) = default;
DOCUMENT("How many function calls were made.");
uint32_t calls;
@@ -1081,6 +1105,7 @@ struct FrameStatistics
DOCUMENT("");
FrameStatistics() = default;
FrameStatistics(const FrameStatistics &) = default;
FrameStatistics &operator=(const FrameStatistics &) = default;
DOCUMENT("``True`` if the statistics in this structure are valid.");
bool recorded;
@@ -1150,6 +1175,7 @@ struct FrameDescription
{
}
FrameDescription(const FrameDescription &) = default;
FrameDescription &operator=(const FrameDescription &) = default;
DOCUMENT(R"(Starting from frame #1 defined as the time from application startup to first present,
this counts the frame number when the capture was made.
@@ -1202,6 +1228,7 @@ struct EventUsage
EventUsage(const EventUsage &) = default;
EventUsage(uint32_t e, ResourceUsage u) : eventId(e), usage(u) {}
EventUsage(uint32_t e, ResourceUsage u, ResourceId v) : eventId(e), usage(u), view(v) {}
EventUsage &operator=(const EventUsage &) = default;
bool operator<(const EventUsage &o) const
{
if(!(eventId == o.eventId))
@@ -1228,6 +1255,7 @@ struct DrawcallDescription
DOCUMENT("");
DrawcallDescription() { Reset(); }
DrawcallDescription(const DrawcallDescription &) = default;
DrawcallDescription &operator=(const DrawcallDescription &) = default;
DOCUMENT("Resets the drawcall back to a default/empty state.");
void Reset()
@@ -1367,6 +1395,7 @@ struct APIProperties
DOCUMENT("");
APIProperties() = default;
APIProperties(const APIProperties &) = default;
APIProperties &operator=(const APIProperties &) = default;
DOCUMENT("The :class:`GraphicsAPI` of the actual log/capture.");
GraphicsAPI pipelineType = GraphicsAPI::D3D11;
@@ -1408,6 +1437,11 @@ DECLARE_REFLECTION_STRUCT(APIProperties);
DOCUMENT("Gives information about the driver for this API.");
struct DriverInformation
{
DOCUMENT("");
DriverInformation() = default;
DriverInformation(const DriverInformation &) = default;
DriverInformation &operator=(const DriverInformation &) = default;
DOCUMENT("The :class:`GPUVendor` that provides this driver");
GPUVendor vendor;
@@ -1431,6 +1465,7 @@ struct Uuid
Uuid() { words[0] = words[1] = words[2] = words[3] = 0; }
Uuid(const Uuid &) = default;
Uuid &operator=(const Uuid &) = default;
DOCUMENT("Compares two ``Uuid`` objects for less-than.");
bool operator<(const Uuid &rhs) const
@@ -1452,6 +1487,7 @@ struct CounterDescription
DOCUMENT("");
CounterDescription() = default;
CounterDescription(const CounterDescription &) = default;
CounterDescription &operator=(const CounterDescription &) = default;
DOCUMENT(R"(The :class:`GPUCounter` this counter represents.
@@ -1543,6 +1579,7 @@ struct CounterResult
value.u64 = data;
}
#endif
CounterResult &operator=(const CounterResult &) = default;
DOCUMENT("Compares two ``CounterResult`` objects for less-than.");
bool operator<(const CounterResult &o) const
@@ -1607,6 +1644,7 @@ struct Subresource
{
}
Subresource(const Subresource &) = default;
Subresource &operator=(const Subresource &) = default;
bool operator==(const Subresource &o) const
{
@@ -1647,6 +1685,7 @@ struct ModificationValue
DOCUMENT("");
ModificationValue() = default;
ModificationValue(const ModificationValue &) = default;
ModificationValue &operator=(const ModificationValue &) = default;
bool operator==(const ModificationValue &o) const
{
@@ -1680,6 +1719,7 @@ struct PixelModification
DOCUMENT("");
PixelModification() = default;
PixelModification(const PixelModification &) = default;
PixelModification &operator=(const PixelModification &) = default;
bool operator==(const PixelModification &o) const
{
@@ -1794,6 +1834,7 @@ struct Thumbnail
DOCUMENT("");
Thumbnail() = default;
Thumbnail(const Thumbnail &) = default;
Thumbnail &operator=(const Thumbnail &) = default;
DOCUMENT("The :class:`FileType` of the data in the thumbnail.");
FileType type = FileType::Raw;
+19
View File
@@ -40,6 +40,7 @@ struct VertexAttribute
DOCUMENT("");
VertexAttribute() = default;
VertexAttribute(const VertexAttribute &) = default;
VertexAttribute &operator=(const VertexAttribute &) = default;
bool operator==(const VertexAttribute &o) const
{
@@ -83,6 +84,7 @@ struct VertexBuffer
DOCUMENT("");
VertexBuffer() = default;
VertexBuffer(const VertexBuffer &) = default;
VertexBuffer &operator=(const VertexBuffer &) = default;
bool operator==(const VertexBuffer &o) const
{
@@ -124,6 +126,7 @@ struct VertexInput
DOCUMENT("");
VertexInput() = default;
VertexInput(const VertexInput &) = default;
VertexInput &operator=(const VertexInput &) = default;
DOCUMENT("The :class:`ResourceId` of the vertex array object that's bound.");
ResourceId vertexArrayObject;
@@ -154,6 +157,7 @@ struct Shader
DOCUMENT("");
Shader() = default;
Shader(const Shader &) = default;
Shader &operator=(const Shader &) = default;
DOCUMENT("The :class:`ResourceId` of the shader object itself.");
ResourceId shaderResourceId;
@@ -181,6 +185,7 @@ struct FixedVertexProcessing
DOCUMENT("");
FixedVertexProcessing() = default;
FixedVertexProcessing(const FixedVertexProcessing &) = default;
FixedVertexProcessing &operator=(const FixedVertexProcessing &) = default;
DOCUMENT("A list of ``float`` giving the default inner level of tessellation.");
float defaultInnerLevel[2] = {0.0f, 0.0f};
@@ -209,6 +214,7 @@ struct Texture
DOCUMENT("");
Texture() = default;
Texture(const Texture &) = default;
Texture &operator=(const Texture &) = default;
bool operator==(const Texture &o) const
{
@@ -268,6 +274,7 @@ struct Sampler
DOCUMENT("");
Sampler() = default;
Sampler(const Sampler &) = default;
Sampler &operator=(const Sampler &) = default;
bool operator==(const Sampler &o) const
{
@@ -356,6 +363,7 @@ struct Buffer
DOCUMENT("");
Buffer() = default;
Buffer(const Buffer &) = default;
Buffer &operator=(const Buffer &) = default;
bool operator==(const Buffer &o) const
{
@@ -385,6 +393,7 @@ struct ImageLoadStore
DOCUMENT("");
ImageLoadStore() = default;
ImageLoadStore(const ImageLoadStore &) = default;
ImageLoadStore &operator=(const ImageLoadStore &) = default;
bool operator==(const ImageLoadStore &o) const
{
@@ -438,6 +447,7 @@ struct Feedback
DOCUMENT("");
Feedback() = default;
Feedback(const Feedback &) = default;
Feedback &operator=(const Feedback &) = default;
DOCUMENT("The :class:`ResourceId` of the transform feedback binding.");
ResourceId feedbackResourceId;
@@ -459,6 +469,7 @@ struct RasterizerState
DOCUMENT("");
RasterizerState() = default;
RasterizerState(const RasterizerState &) = default;
RasterizerState &operator=(const RasterizerState &) = default;
DOCUMENT("The polygon :class:`FillMode`.");
FillMode fillMode = FillMode::Solid;
@@ -524,6 +535,7 @@ struct Rasterizer
DOCUMENT("");
Rasterizer() = default;
Rasterizer(const Rasterizer &) = default;
Rasterizer &operator=(const Rasterizer &) = default;
DOCUMENT("A list of :class:`Viewport` with the bound viewports.");
rdcarray<Viewport> viewports;
@@ -541,6 +553,7 @@ struct DepthState
DOCUMENT("");
DepthState() = default;
DepthState(const DepthState &) = default;
DepthState &operator=(const DepthState &) = default;
DOCUMENT("``True`` if depth testing should be performed.");
bool depthEnable = false;
@@ -562,6 +575,7 @@ struct StencilState
DOCUMENT("");
StencilState() = default;
StencilState(const StencilState &) = default;
StencilState &operator=(const StencilState &) = default;
DOCUMENT("``True`` if stencil operations should be performed.");
bool stencilEnable = false;
@@ -578,6 +592,7 @@ struct Attachment
DOCUMENT("");
Attachment() = default;
Attachment(const Attachment &) = default;
Attachment &operator=(const Attachment &) = default;
bool operator==(const Attachment &o) const
{
@@ -620,6 +635,7 @@ struct FBO
DOCUMENT("");
FBO() = default;
FBO(const FBO &) = default;
FBO &operator=(const FBO &) = default;
DOCUMENT("The :class:`ResourceId` of the framebuffer.");
ResourceId resourceId;
@@ -642,6 +658,7 @@ struct BlendState
DOCUMENT("");
BlendState() = default;
BlendState(const BlendState &) = default;
BlendState &operator=(const BlendState &) = default;
DOCUMENT("A list of :class:`ColorBlend` describing the blend operations for each target.");
rdcarray<ColorBlend> blends;
@@ -656,6 +673,7 @@ struct FrameBuffer
DOCUMENT("");
FrameBuffer() = default;
FrameBuffer(const FrameBuffer &) = default;
FrameBuffer &operator=(const FrameBuffer &) = default;
DOCUMENT(
"``True`` if sRGB correction should be applied when writing to an sRGB-formatted texture.");
@@ -678,6 +696,7 @@ struct Hints
DOCUMENT("");
Hints() = default;
Hints(const Hints &) = default;
Hints &operator=(const Hints &) = default;
DOCUMENT("A :class:`QualityHint` with the derivatives hint.");
QualityHint derivatives = QualityHint::DontCare;
+2 -2
View File
@@ -141,12 +141,12 @@ private:
#endif
return ret;
}
static void deallocate(const char *p)
static void deallocate(char *p)
{
#ifdef RENDERDOC_EXPORTS
free((void *)p);
#else
RENDERDOC_FreeArrayMem((const void *)p);
RENDERDOC_FreeArrayMem((void *)p);
#endif
}
+4 -2
View File
@@ -107,8 +107,8 @@
// needs to be declared up here for reference in basic_types
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_FreeArrayMem(const void *mem);
typedef void(RENDERDOC_CC *pRENDERDOC_FreeArrayMem)(const void *mem);
extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_FreeArrayMem(void *mem);
typedef void(RENDERDOC_CC *pRENDERDOC_FreeArrayMem)(void *mem);
extern "C" RENDERDOC_API void *RENDERDOC_CC RENDERDOC_AllocArrayMem(uint64_t sz);
typedef void *(RENDERDOC_CC *pRENDERDOC_AllocArrayMem)(uint64_t sz);
@@ -601,6 +601,7 @@ struct GlobalEnvironment
DOCUMENT("");
GlobalEnvironment() = default;
GlobalEnvironment(const GlobalEnvironment &) = default;
GlobalEnvironment &operator=(const GlobalEnvironment &) = default;
DOCUMENT("The handle to the X display to use internally. If left ``NULL``, one will be opened.");
Display *xlibDisplay = NULL;
@@ -622,6 +623,7 @@ struct ExecuteResult
DOCUMENT("");
ExecuteResult() = default;
ExecuteResult(const ExecuteResult &) = default;
ExecuteResult &operator=(const ExecuteResult &) = default;
DOCUMENT(
"The :class:`ReplayStatus` resulting from the operation, indicating success or failure.");
+26
View File
@@ -35,6 +35,7 @@ struct FloatVecVal
DOCUMENT("");
FloatVecVal() = default;
FloatVecVal(const FloatVecVal &) = default;
FloatVecVal &operator=(const FloatVecVal &) = default;
DOCUMENT("The x component.");
float x;
@@ -52,6 +53,7 @@ struct DoubleVecVal
DOCUMENT("");
DoubleVecVal() = default;
DoubleVecVal(const DoubleVecVal &) = default;
DoubleVecVal &operator=(const DoubleVecVal &) = default;
DOCUMENT("The x component.");
double x;
@@ -69,6 +71,7 @@ struct IntVecVal
DOCUMENT("");
IntVecVal() = default;
IntVecVal(const IntVecVal &) = default;
IntVecVal &operator=(const IntVecVal &) = default;
DOCUMENT("The x component.");
int32_t x;
@@ -86,6 +89,7 @@ struct UIntVecVal
DOCUMENT("");
UIntVecVal() = default;
UIntVecVal(const UIntVecVal &) = default;
UIntVecVal &operator=(const UIntVecVal &) = default;
DOCUMENT("The x component.");
uint32_t x;
@@ -103,6 +107,7 @@ struct PointerVal
DOCUMENT("");
PointerVal() = default;
PointerVal(const PointerVal &) = default;
PointerVal &operator=(const PointerVal &) = default;
DOCUMENT("The actual pointer value itself.");
uint64_t pointer;
@@ -166,6 +171,7 @@ struct ShaderVariable
value.uv[i] = 0;
}
ShaderVariable(const ShaderVariable &) = default;
ShaderVariable &operator=(const ShaderVariable &) = default;
ShaderVariable(const char *n, float x, float y, float z, float w)
{
name = n;
@@ -321,6 +327,7 @@ struct RegisterRange
DOCUMENT("");
RegisterRange() = default;
RegisterRange(const RegisterRange &) = default;
RegisterRange &operator=(const RegisterRange &) = default;
bool operator==(const RegisterRange &o) const
{
@@ -364,6 +371,7 @@ struct LocalVariableMapping
DOCUMENT("");
LocalVariableMapping() = default;
LocalVariableMapping(const LocalVariableMapping &) = default;
LocalVariableMapping &operator=(const LocalVariableMapping &) = default;
bool operator==(const LocalVariableMapping &o) const
{
@@ -423,6 +431,7 @@ struct LineColumnInfo
DOCUMENT("");
LineColumnInfo() = default;
LineColumnInfo(const LineColumnInfo &) = default;
LineColumnInfo &operator=(const LineColumnInfo &) = default;
bool operator==(const LineColumnInfo &o) const
{
@@ -483,6 +492,7 @@ struct ShaderDebugState
DOCUMENT("");
ShaderDebugState() = default;
ShaderDebugState(const ShaderDebugState &) = default;
ShaderDebugState &operator=(const ShaderDebugState &) = default;
bool operator==(const ShaderDebugState &o) const
{
@@ -541,6 +551,7 @@ struct ShaderDebugTrace
DOCUMENT("");
ShaderDebugTrace() = default;
ShaderDebugTrace(const ShaderDebugTrace &) = default;
ShaderDebugTrace &operator=(const ShaderDebugTrace &) = default;
DOCUMENT("The input variables for this shader as a list of :class:`ShaderValue`.");
rdcarray<ShaderVariable> inputs;
@@ -579,6 +590,7 @@ struct SigParameter
DOCUMENT("");
SigParameter() = default;
SigParameter(const SigParameter &) = default;
SigParameter &operator=(const SigParameter &) = default;
bool operator==(const SigParameter &o) const
{
@@ -675,6 +687,7 @@ struct ShaderVariableDescriptor
DOCUMENT("");
ShaderVariableDescriptor() = default;
ShaderVariableDescriptor(const ShaderVariableDescriptor &) = default;
ShaderVariableDescriptor &operator=(const ShaderVariableDescriptor &) = default;
bool operator==(const ShaderVariableDescriptor &o) const
{
@@ -737,6 +750,7 @@ struct ShaderVariableType
DOCUMENT("");
ShaderVariableType() = default;
ShaderVariableType(const ShaderVariableType &) = default;
ShaderVariableType &operator=(const ShaderVariableType &) = default;
bool operator==(const ShaderVariableType &o) const
{
@@ -765,6 +779,7 @@ struct ShaderConstant
DOCUMENT("");
ShaderConstant() = default;
ShaderConstant(const ShaderConstant &) = default;
ShaderConstant &operator=(const ShaderConstant &) = default;
bool operator==(const ShaderConstant &o) const
{
@@ -805,6 +820,7 @@ struct ConstantBlock
DOCUMENT("");
ConstantBlock() = default;
ConstantBlock(const ConstantBlock &) = default;
ConstantBlock &operator=(const ConstantBlock &) = default;
bool operator==(const ConstantBlock &o) const
{
@@ -855,6 +871,7 @@ struct ShaderSampler
DOCUMENT("");
ShaderSampler() = default;
ShaderSampler(const ShaderSampler &) = default;
ShaderSampler &operator=(const ShaderSampler &) = default;
bool operator==(const ShaderSampler &o) const
{
@@ -890,6 +907,7 @@ struct ShaderResource
DOCUMENT("");
ShaderResource() = default;
ShaderResource(const ShaderResource &) = default;
ShaderResource &operator=(const ShaderResource &) = default;
bool operator==(const ShaderResource &o) const
{
@@ -942,6 +960,7 @@ struct ShaderEntryPoint
{
ShaderEntryPoint() = default;
ShaderEntryPoint(const ShaderEntryPoint &) = default;
ShaderEntryPoint &operator=(const ShaderEntryPoint &) = default;
ShaderEntryPoint(const rdcstr &n, ShaderStage s) : name(n), stage(s) {}
DOCUMENT("");
bool operator==(const ShaderEntryPoint &o) const { return name == o.name && stage == o.stage; }
@@ -968,6 +987,7 @@ struct ShaderCompileFlag
DOCUMENT("");
ShaderCompileFlag() = default;
ShaderCompileFlag(const ShaderCompileFlag &) = default;
ShaderCompileFlag &operator=(const ShaderCompileFlag &) = default;
bool operator==(const ShaderCompileFlag &o) const { return name == o.name && value == o.value; }
bool operator<(const ShaderCompileFlag &o) const
@@ -993,6 +1013,7 @@ struct ShaderCompileFlags
DOCUMENT("");
ShaderCompileFlags() = default;
ShaderCompileFlags(const ShaderCompileFlags &) = default;
ShaderCompileFlags &operator=(const ShaderCompileFlags &) = default;
DOCUMENT(R"(A list of :class:`ShaderCompileFlag`.
@@ -1009,6 +1030,7 @@ struct ShaderSourceFile
DOCUMENT("");
ShaderSourceFile() = default;
ShaderSourceFile(const ShaderSourceFile &) = default;
ShaderSourceFile &operator=(const ShaderSourceFile &) = default;
bool operator==(const ShaderSourceFile &o) const
{
@@ -1040,6 +1062,7 @@ struct ShaderDebugInfo
{
ShaderDebugInfo() {}
ShaderDebugInfo(const ShaderDebugInfo &) = default;
ShaderDebugInfo &operator=(const ShaderDebugInfo &) = default;
DOCUMENT("A :class:`ShaderCompileFlags` containing the flags used to compile this shader.");
ShaderCompileFlags compileFlags;
@@ -1067,6 +1090,7 @@ struct ShaderReflection
DOCUMENT("");
ShaderReflection() = default;
ShaderReflection(const ShaderReflection &) = default;
ShaderReflection &operator=(const ShaderReflection &) = default;
DOCUMENT("The :class:`ResourceId` of this shader.");
ResourceId resourceId;
@@ -1134,6 +1158,7 @@ struct Bindpoint
arraySize = 1;
}
Bindpoint(const Bindpoint &) = default;
Bindpoint &operator=(const Bindpoint &) = default;
Bindpoint(int32_t s, int32_t b)
{
@@ -1206,6 +1231,7 @@ struct ShaderBindpointMapping
DOCUMENT("");
ShaderBindpointMapping() = default;
ShaderBindpointMapping(const ShaderBindpointMapping &) = default;
ShaderBindpointMapping &operator=(const ShaderBindpointMapping &) = default;
DOCUMENT(R"(This maps input attributes as a simple swizzle on the
:data:`ShaderReflection.inputSignature` indices for APIs where this mapping is mutable at runtime.
+2 -1
View File
@@ -228,6 +228,7 @@ struct SDChunkMetaData
DOCUMENT("");
SDChunkMetaData() = default;
SDChunkMetaData(const SDChunkMetaData &) = default;
SDChunkMetaData &operator=(const SDChunkMetaData &) = default;
DOCUMENT("The internal chunk ID - unique given a particular driver in use.");
uint32_t chunkID = 0;
@@ -664,7 +665,7 @@ inline SDObject *makeSDInt32(const char *name, int32_t val)
SDObject *ret = new SDObject(name, "int32_t"_lit);
ret->type.basetype = SDBasic::SignedInteger;
ret->type.byteSize = 4;
ret->data.basic.u = val;
ret->data.basic.i = val;
return ret;
}
+30
View File
@@ -34,6 +34,7 @@ struct BindingElement
DOCUMENT("");
BindingElement() = default;
BindingElement(const BindingElement &) = default;
BindingElement &operator=(const BindingElement &) = default;
bool operator==(const BindingElement &o) const
{
@@ -217,6 +218,7 @@ struct DescriptorBinding
DOCUMENT("");
DescriptorBinding() = default;
DescriptorBinding(const DescriptorBinding &) = default;
DescriptorBinding &operator=(const DescriptorBinding &) = default;
bool operator==(const DescriptorBinding &o) const
{
@@ -264,6 +266,7 @@ struct DescriptorSet
DOCUMENT("");
DescriptorSet() = default;
DescriptorSet(const DescriptorSet &) = default;
DescriptorSet &operator=(const DescriptorSet &) = default;
bool operator==(const DescriptorSet &o) const
{
@@ -302,6 +305,7 @@ struct Pipeline
DOCUMENT("");
Pipeline() = default;
Pipeline(const Pipeline &) = default;
Pipeline &operator=(const Pipeline &) = default;
DOCUMENT("The :class:`ResourceId` of the pipeline object.");
ResourceId pipelineResourceId;
@@ -320,6 +324,7 @@ struct IndexBuffer
DOCUMENT("");
IndexBuffer() = default;
IndexBuffer(const IndexBuffer &) = default;
IndexBuffer &operator=(const IndexBuffer &) = default;
DOCUMENT("The :class:`ResourceId` of the index buffer.");
ResourceId resourceId;
@@ -334,6 +339,7 @@ struct InputAssembly
DOCUMENT("");
InputAssembly() = default;
InputAssembly(const InputAssembly &) = default;
InputAssembly &operator=(const InputAssembly &) = default;
DOCUMENT("``True`` if primitive restart is enabled for strip primitives.");
bool primitiveRestartEnable = false;
@@ -348,6 +354,7 @@ struct VertexAttribute
DOCUMENT("");
VertexAttribute() = default;
VertexAttribute(const VertexAttribute &) = default;
VertexAttribute &operator=(const VertexAttribute &) = default;
bool operator==(const VertexAttribute &o) const
{
@@ -384,6 +391,7 @@ struct VertexBinding
DOCUMENT("");
VertexBinding() = default;
VertexBinding(const VertexBinding &) = default;
VertexBinding &operator=(const VertexBinding &) = default;
bool operator==(const VertexBinding &o) const
{
@@ -424,6 +432,7 @@ struct VertexBuffer
DOCUMENT("");
VertexBuffer() = default;
VertexBuffer(const VertexBuffer &) = default;
VertexBuffer &operator=(const VertexBuffer &) = default;
bool operator==(const VertexBuffer &o) const
{
@@ -449,6 +458,7 @@ struct VertexInput
DOCUMENT("");
VertexInput() = default;
VertexInput(const VertexInput &) = default;
VertexInput &operator=(const VertexInput &) = default;
DOCUMENT("A list of :class:`VKVertexAttribute` with the vertex attributes.");
rdcarray<VertexAttribute> attributes;
@@ -464,6 +474,7 @@ struct SpecializationConstant
DOCUMENT("");
SpecializationConstant() = default;
SpecializationConstant(const SpecializationConstant &) = default;
SpecializationConstant &operator=(const SpecializationConstant &) = default;
bool operator==(const SpecializationConstant &o) const
{
@@ -489,6 +500,7 @@ struct Shader
DOCUMENT("");
Shader() = default;
Shader(const Shader &) = default;
Shader &operator=(const Shader &) = default;
DOCUMENT("The :class:`ResourceId` of the shader module object.");
ResourceId resourceId;
@@ -516,6 +528,7 @@ struct Tessellation
DOCUMENT("");
Tessellation() = default;
Tessellation(const Tessellation &) = default;
Tessellation &operator=(const Tessellation &) = default;
DOCUMENT("The number of control points in each input patch.");
uint32_t numControlPoints = 0;
@@ -530,6 +543,7 @@ struct XFBBuffer
DOCUMENT("");
XFBBuffer() = default;
XFBBuffer(const XFBBuffer &) = default;
XFBBuffer &operator=(const XFBBuffer &) = default;
bool operator==(const XFBBuffer &o) const
{
@@ -580,6 +594,7 @@ struct TransformFeedback
DOCUMENT("");
TransformFeedback() = default;
TransformFeedback(const TransformFeedback &) = default;
TransformFeedback &operator=(const TransformFeedback &) = default;
DOCUMENT("The bound transform feedback buffers.");
rdcarray<XFBBuffer> buffers;
@@ -591,6 +606,7 @@ struct RenderArea
DOCUMENT("");
RenderArea() = default;
RenderArea(const RenderArea &) = default;
RenderArea &operator=(const RenderArea &) = default;
bool operator==(const RenderArea &o) const
{
return x == o.x && y == o.y && width == o.width && height == o.height;
@@ -624,6 +640,7 @@ struct ViewportScissor
DOCUMENT("");
ViewportScissor() = default;
ViewportScissor(const ViewportScissor &) = default;
ViewportScissor &operator=(const ViewportScissor &) = default;
bool operator==(const ViewportScissor &o) const { return vp == o.vp && scissor == o.scissor; }
bool operator<(const ViewportScissor &o) const
@@ -646,6 +663,7 @@ struct ViewState
DOCUMENT("");
ViewState() = default;
ViewState(const ViewState &) = default;
ViewState &operator=(const ViewState &) = default;
DOCUMENT("A list of :class:`VKViewportScissor`.");
rdcarray<ViewportScissor> viewportScissors;
@@ -672,6 +690,7 @@ struct Rasterizer
DOCUMENT("");
Rasterizer() = default;
Rasterizer(const Rasterizer &) = default;
Rasterizer &operator=(const Rasterizer &) = default;
DOCUMENT(R"(``True`` if pixels outside of the near and far depth planes should be clamped and
to ``0.0`` to ``1.0``.
@@ -730,6 +749,7 @@ struct SampleLocations
DOCUMENT("");
SampleLocations() = default;
SampleLocations(const SampleLocations &) = default;
SampleLocations &operator=(const SampleLocations &) = default;
DOCUMENT("The width in pixels of the region configured.");
uint32_t gridWidth = 1;
@@ -749,6 +769,7 @@ struct MultiSample
DOCUMENT("");
MultiSample() = default;
MultiSample(const MultiSample &) = default;
MultiSample &operator=(const MultiSample &) = default;
DOCUMENT("How many samples to use when rasterizing.");
uint32_t rasterSamples = 0;
@@ -768,6 +789,7 @@ struct ColorBlendState
DOCUMENT("");
ColorBlendState() = default;
ColorBlendState(const ColorBlendState &) = default;
ColorBlendState &operator=(const ColorBlendState &) = default;
DOCUMENT("``True`` if alpha-to-coverage should be used when blending to an MSAA target.");
bool alphaToCoverageEnable = false;
@@ -787,6 +809,7 @@ struct DepthStencil
DOCUMENT("");
DepthStencil() = default;
DepthStencil(const DepthStencil &) = default;
DepthStencil &operator=(const DepthStencil &) = default;
DOCUMENT("``True`` if depth testing should be performed.");
bool depthTestEnable = false;
@@ -817,6 +840,7 @@ struct RenderPass
DOCUMENT("");
RenderPass() = default;
RenderPass(const RenderPass &) = default;
RenderPass &operator=(const RenderPass &) = default;
DOCUMENT("The :class:`ResourceId` of the render pass.");
ResourceId resourceId;
@@ -858,6 +882,7 @@ struct Attachment
DOCUMENT("");
Attachment() = default;
Attachment(const Attachment &) = default;
Attachment &operator=(const Attachment &) = default;
bool operator==(const Attachment &o) const
{
@@ -918,6 +943,7 @@ struct Framebuffer
DOCUMENT("");
Framebuffer() = default;
Framebuffer(const Framebuffer &) = default;
Framebuffer &operator=(const Framebuffer &) = default;
DOCUMENT("The :class:`ResourceId` of the framebuffer object.");
ResourceId resourceId;
@@ -939,6 +965,7 @@ struct CurrentPass
DOCUMENT("");
CurrentPass() = default;
CurrentPass(const CurrentPass &) = default;
CurrentPass &operator=(const CurrentPass &) = default;
DOCUMENT("The :class:`VKRenderPass` that is currently active.");
RenderPass renderpass;
@@ -954,6 +981,7 @@ struct ImageLayout
DOCUMENT("");
ImageLayout() = default;
ImageLayout(const ImageLayout &) = default;
ImageLayout &operator=(const ImageLayout &) = default;
bool operator==(const ImageLayout &o) const
{
@@ -992,6 +1020,7 @@ struct ImageData
DOCUMENT("");
ImageData() = default;
ImageData(const ImageData &) = default;
ImageData &operator=(const ImageData &) = default;
bool operator==(const ImageData &o) const { return resourceId == o.resourceId; }
bool operator<(const ImageData &o) const
@@ -1013,6 +1042,7 @@ struct ConditionalRendering
DOCUMENT("");
ConditionalRendering() = default;
ConditionalRendering(const ConditionalRendering &) = default;
ConditionalRendering &operator=(const ConditionalRendering &) = default;
DOCUMENT(
"The :class:`ResourceId` of the buffer containing the predicate for conditional rendering.");