Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
skgpu::UniformWriter Struct Reference

#include <BufferWriter.h>

Inheritance diagram for skgpu::UniformWriter:
skgpu::BufferWriter

Public Member Functions

 UniformWriter ()=default
 
 UniformWriter (void *ptr, size_t size)
 
 UniformWriter (void *ptr, Mark end)
 
 UniformWriter (const UniformWriter &)=delete
 
 UniformWriter (UniformWriter &&that)
 
UniformWriteroperator= (const UniformWriter &)=delete
 
UniformWriteroperator= (UniformWriter &&that)
 
void write (const void *src, size_t bytes)
 
void skipBytes (size_t bytes)
 
- Public Member Functions inherited from skgpu::BufferWriter
 operator bool () const
 
Mark mark (size_t offset=0) const
 

Additional Inherited Members

- Protected Member Functions inherited from skgpu::BufferWriter
 BufferWriter ()=default
 
 BufferWriter (void *ptr, size_t size)
 
 BufferWriter (void *ptr, Mark end={})
 
BufferWriteroperator= (const BufferWriter &)=delete
 
BufferWriteroperator= (BufferWriter &&that)
 
template<typename W >
W makeOffset (size_t offsetInBytes) const
 
void validate (size_t bytesToWrite) const
 
- Protected Attributes inherited from skgpu::BufferWriter
void * fPtr = nullptr
 

Detailed Description

Definition at line 424 of file BufferWriter.h.

Constructor & Destructor Documentation

◆ UniformWriter() [1/5]

skgpu::UniformWriter::UniformWriter ( )
default

◆ UniformWriter() [2/5]

skgpu::UniformWriter::UniformWriter ( void *  ptr,
size_t  size 
)
inline

Definition at line 427 of file BufferWriter.h.

427: BufferWriter(ptr, size) {}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
BufferWriter()=default

◆ UniformWriter() [3/5]

skgpu::UniformWriter::UniformWriter ( void *  ptr,
Mark  end 
)
inline

Definition at line 428 of file BufferWriter.h.

428: BufferWriter(ptr, end) {}

◆ UniformWriter() [4/5]

skgpu::UniformWriter::UniformWriter ( const UniformWriter )
delete

◆ UniformWriter() [5/5]

skgpu::UniformWriter::UniformWriter ( UniformWriter &&  that)
inline

Definition at line 431 of file BufferWriter.h.

431{ *this = std::move(that); }

Member Function Documentation

◆ operator=() [1/2]

UniformWriter & skgpu::UniformWriter::operator= ( const UniformWriter )
delete

◆ operator=() [2/2]

UniformWriter & skgpu::UniformWriter::operator= ( UniformWriter &&  that)
inline

Definition at line 434 of file BufferWriter.h.

434 {
435 BufferWriter::operator=(std::move(that));
436 return *this;
437 }
BufferWriter & operator=(const BufferWriter &)=delete

◆ skipBytes()

void skgpu::UniformWriter::skipBytes ( size_t  bytes)
inline

Definition at line 444 of file BufferWriter.h.

444 {
445 this->validate(bytes);
446 fPtr = SkTAddOffset<void>(fPtr, bytes);
447 }
void validate(size_t bytesToWrite) const
Definition: BufferWriter.h:102

◆ write()

void skgpu::UniformWriter::write ( const void *  src,
size_t  bytes 
)
inline

Definition at line 439 of file BufferWriter.h.

439 {
440 this->validate(bytes);
441 memcpy(fPtr, src, bytes);
442 fPtr = SkTAddOffset<void>(fPtr, bytes);
443 }

The documentation for this struct was generated from the following file: