summaryrefslogtreecommitdiffstats
path: root/src/gui/rhi/qrhi.cpp
diff options
context:
space:
mode:
authorJonas Kvinge <jonas@jkvinge.net>2021-10-09 17:19:14 +0200
committerJonas Kvinge <jonas@jkvinge.net>2021-10-12 12:52:02 +0200
commit13b5c269d6f4ce7936e01b11441aaa3045125d94 (patch)
treee70131111dc36564a808750ce209ee97f6b38211 /src/gui/rhi/qrhi.cpp
parent30613163ba74642b66a90458b094d066162b7772 (diff)
gui: Fix typos in documentation
Pick-to: 5.15 6.2 Change-Id: I533f5a55cd0cd60a76990b552d7dab51a301ac1c Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui/rhi/qrhi.cpp')
-rw-r--r--src/gui/rhi/qrhi.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/rhi/qrhi.cpp b/src/gui/rhi/qrhi.cpp
index f13da926b8..a281da21d3 100644
--- a/src/gui/rhi/qrhi.cpp
+++ b/src/gui/rhi/qrhi.cpp
@@ -1055,7 +1055,7 @@ QDebug operator<<(QDebug dbg, const QRhiScissor &s)
Now let's assume also that 3 component vertex positions \c{(x, y, z)} and 2
component texture coordinates \c{(u, v)} are provided in a non-interleaved
- format in a buffer (or separate buffers even). Definining two bindings
+ format in a buffer (or separate buffers even). Defining two bindings
could then be done like this:
\badcode
@@ -2234,7 +2234,7 @@ QRhiBuffer::NativeBuffer QRhiBuffer::nativeBuffer()
depending on the backend.
\warning When updating buffer data via this method, the update must be done
- in every frame, otherwise backends that perform double or tripple buffering
+ in every frame, otherwise backends that perform double or triple buffering
of resources may end up in unexpected behavior.
\warning Partial updates are not possible with this approach since some
@@ -2928,7 +2928,7 @@ QRhiResource::Type QRhiTextureRenderTarget::resourceType() const
descriptor as long as they have the same number and type of attachments.
The associated QRhiTexture or QRhiRenderBuffer instances are not part of
the render pass descriptor so those can differ in the two
- QRhiTextureRenderTarget intances.
+ QRhiTextureRenderTarget instances.
\note resources, such as QRhiTexture instances, referenced in description()
must already have create() called on them.
@@ -6705,7 +6705,7 @@ bool QRhi::isRecordingFrame() const
C++ containers and other types. It may also be similar to what an OpenGL or
Direct 3D 11 implementation performs internally for certain type of objects.
- In practice, such double (or tripple) buffering resources is realized in
+ In practice, such double (or triple) buffering resources is realized in
the Vulkan, Metal, and similar QRhi backends by having a fixed number of
native resource (such as, VkBuffer) \c slots behind a QRhiResource. That
can then be indexed by a frame slot index running 0, 1, ..,
@@ -6713,7 +6713,7 @@ bool QRhi::isRecordingFrame() const
All this is managed transparently to the users of QRhi. However,
applications that integrate rendering done directly with the graphics API
- may want to perform a similar double or tripple buffering of their own
+ may want to perform a similar double or triple buffering of their own
graphics resources. That is then most easily achieved by knowing the values
of the maximum number of in-flight frames (retrievable via resourceLimit())
and the current frame (slot) index (returned by this function).