mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:07:45 +00:00
LibVirtGPU: Add newlines between CommandBuilder methods
This commit is contained in:
parent
255b12ea97
commit
a95eea5ae2
1 changed files with 6 additions and 0 deletions
|
@ -31,16 +31,19 @@ public:
|
||||||
{
|
{
|
||||||
m_buffer.append(0);
|
m_buffer.append(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void appendu32(u32 value)
|
void appendu32(u32 value)
|
||||||
{
|
{
|
||||||
VERIFY(!m_finalized);
|
VERIFY(!m_finalized);
|
||||||
m_buffer.append(value);
|
m_buffer.append(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void appendf32(float value)
|
void appendf32(float value)
|
||||||
{
|
{
|
||||||
VERIFY(!m_finalized);
|
VERIFY(!m_finalized);
|
||||||
m_buffer.append(bit_cast<u32>(value));
|
m_buffer.append(bit_cast<u32>(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
void appendf64(double value)
|
void appendf64(double value)
|
||||||
{
|
{
|
||||||
VERIFY(!m_finalized);
|
VERIFY(!m_finalized);
|
||||||
|
@ -49,6 +52,7 @@ public:
|
||||||
auto* depth = (u64*)(&m_buffer[m_buffer.size() - 2]);
|
auto* depth = (u64*)(&m_buffer[m_buffer.size() - 2]);
|
||||||
*depth = bit_cast<u64>(value);
|
*depth = bit_cast<u64>(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
void append_string_null_padded(StringView string)
|
void append_string_null_padded(StringView string)
|
||||||
{
|
{
|
||||||
VERIFY(!m_finalized);
|
VERIFY(!m_finalized);
|
||||||
|
@ -61,6 +65,7 @@ public:
|
||||||
// Pad end with null bytes
|
// Pad end with null bytes
|
||||||
memset(&dest[string.length()], 0, 4 * num_required_words - string.length());
|
memset(&dest[string.length()], 0, 4 * num_required_words - string.length());
|
||||||
}
|
}
|
||||||
|
|
||||||
void finalize()
|
void finalize()
|
||||||
{
|
{
|
||||||
if (!m_finalized) {
|
if (!m_finalized) {
|
||||||
|
@ -69,6 +74,7 @@ public:
|
||||||
m_buffer[m_start_offset] = encode_command(num_elems, m_command_mid, m_command);
|
m_buffer[m_start_offset] = encode_command(num_elems, m_command_mid, m_command);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~CommandBuilder()
|
~CommandBuilder()
|
||||||
{
|
{
|
||||||
if (!m_finalized)
|
if (!m_finalized)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue