mirror of https://github.com/bkaradzic/bgfx
fix typo (scrach -> scratch) (#3353)
This commit is contained in:
parent
f29c1b7cde
commit
e464102960
|
@ -333,11 +333,11 @@ BX_STATIC_ASSERT(bx::isPowerOf2(BGFX_CONFIG_MAX_VIEWS), "BGFX_CONFIG_MAX_VIEWS m
|
|||
# define BGFX_CONFIG_PER_FRAME_SCRATCH_STAGING_BUFFER_SIZE (32<<20)
|
||||
#endif
|
||||
|
||||
#ifndef BGFX_CONFIG_MAX_STAGING_SIZE_FOR_SCRACH_BUFFER
|
||||
#ifndef BGFX_CONFIG_MAX_STAGING_SIZE_FOR_SCRATCH_BUFFER
|
||||
/// The threshold of data size above which the staging scratch buffer will
|
||||
/// not be used, but instead a separate device memory allocation will take
|
||||
/// place to stage the data for copying to device.
|
||||
# define BGFX_CONFIG_MAX_STAGING_SIZE_FOR_SCRACH_BUFFER (16 << 20)
|
||||
# define BGFX_CONFIG_MAX_STAGING_SIZE_FOR_SCRATCH_BUFFER (16 << 20)
|
||||
#endif
|
||||
|
||||
#ifndef BGFX_CONFIG_MAX_INSTANCE_DATA_COUNT
|
||||
|
|
|
@ -4442,7 +4442,7 @@ VK_IMPORT_DEVICE
|
|||
StagingBufferVK result;
|
||||
ScratchBufferVK &scratch = m_scratchStagingBuffer[m_cmd.m_currentFrameInFlight];
|
||||
|
||||
if (_size <= BGFX_CONFIG_MAX_STAGING_SIZE_FOR_SCRACH_BUFFER)
|
||||
if (_size <= BGFX_CONFIG_MAX_STAGING_SIZE_FOR_SCRATCH_BUFFER)
|
||||
{
|
||||
const uint32_t scratchOffset = scratch.alloc(_size, _align);
|
||||
|
||||
|
|
Loading…
Reference in New Issue