score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
RhiClearBuffer.hpp
1
#pragma once
2
#include <score_plugin_gfx_export.h>
3
4
#include <QtCore/qglobal.h>
5
6
class
QRhi;
7
class
QRhiBuffer;
8
class
QRhiCommandBuffer;
9
class
QRhiResourceUpdateBatch;
10
11
namespace
score::gfx
12
{
13
53
namespace
RhiClearBuffer
54
{
55
62
SCORE_PLUGIN_GFX_EXPORT
63
void
clearBuffer
(
64
QRhi& rhi,
65
QRhiCommandBuffer& cb,
66
QRhiBuffer* buf,
67
quint32 offset,
68
quint32 size,
69
quint32 pattern = 0u);
70
77
SCORE_PLUGIN_GFX_EXPORT
78
void
clearBuffer
(
79
QRhi& rhi,
80
QRhiResourceUpdateBatch& batch,
81
QRhiBuffer* buf,
82
quint32 offset,
83
quint32 size,
84
quint32 pattern = 0u);
85
86
}
// namespace RhiClearBuffer
87
88
// Metal-specific implementation hook (lives in RhiClearBufferMetal.mm).
89
// On non-Apple platforms a no-op stub is provided in RhiClearBuffer.cpp.
90
// Returns true on success, false if the native path is unavailable
91
// (caller should fall back to the batch variant).
92
bool
clearBufferMetal(
93
QRhi& rhi,
94
QRhiCommandBuffer& cb,
95
QRhiBuffer* buf,
96
quint32 offset,
97
quint32 size,
98
quint32 pattern);
99
100
}
// namespace score::gfx
score::gfx::RhiClearBuffer::clearBuffer
void clearBuffer(QRhi &rhi, QRhiCommandBuffer &cb, QRhiBuffer *buf, quint32 offset, quint32 size, quint32 pattern=0u)
Definition
RhiClearBuffer.cpp:211
score::gfx
Graphics rendering pipeline for ossia score.
Definition
Filter/PreviewWidget.hpp:11