54 const char* debugName;
56 GeometryType primitiveType;
57 PolygonFillMode polygonFillMode;
61 int32_t scissorX = 0, scissorY = 0;
62 uint32_t scissorW, scissorH;
64 uint32_t shaderStageCreateInfoCount;
67 uint8_t colorAttachmentCount;
68 CompareOperation depthCompareOp = CompareOperation::LessOrEqual;
69 bool isDepthTestEnabled =
true;
70 bool isDepthWriteEnabled =
true;
71 bool isStencilEnabled =
false;
72 bool hasDynamicViewport =
false;
73 bool hasDynamicScissor =
false;
74 bool isDepthBiasEnabled =
false;
75 bool isDepthClampEnabled =
false;
77 float depthBiasConstantFactor = 1.25f;
78 float depthBiasSlopeFactor = 1.75f;
79 float depthBiasClamp = 0.0f;
82 if (shaderStageCreateInfoCount != o.shaderStageCreateInfoCount && colorAttachmentCount != o.colorAttachmentCount) {
86 for (uint32_t i = 0; i < shaderStageCreateInfoCount; ++i) {
87 if (shaderStageCreateInfos[i] != o.shaderStageCreateInfos[i]) {
92 for (uint32_t i = 0; i < colorAttachmentCount; ++i) {
93 if (colorAttachmentData[i] != o.colorAttachmentData[i]) {
98 return primitiveType == o.primitiveType
99 && polygonFillMode == o.polygonFillMode
100 && cullMode == o.cullMode
101 && renderPass == o.renderPass
103 && height == o.height
104 && scissorX == o.scissorX
105 && scissorY == o.scissorY
106 && scissorW == o.scissorW
107 && scissorH == o.scissorH
109 && depthCompareOp == o.depthCompareOp
110 && isDepthTestEnabled == o.isDepthTestEnabled
111 && isDepthWriteEnabled == o.isDepthWriteEnabled
112 && isStencilEnabled == o.isStencilEnabled
113 && hasDynamicViewport == o.hasDynamicViewport
114 && hasDynamicScissor == o.hasDynamicScissor
115 && isDepthBiasEnabled == o.isDepthBiasEnabled
116 && isDepthClampEnabled == o.isDepthClampEnabled
118 && depthBiasConstantFactor == o.depthBiasConstantFactor
119 && depthBiasSlopeFactor == o.depthBiasSlopeFactor
120 && depthBiasClamp == o.depthBiasClamp
122 && depthBiasConstantFactor == o.depthBiasConstantFactor
123 && depthBiasSlopeFactor == o.depthBiasSlopeFactor
124 && depthBiasClamp == o.depthBiasClamp;
128 return !(*
this == o);