summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-08-27 03:36:01 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-08-27 03:36:01 +0000
commit09fae5afcd4c43d7e6d32af94e03f8aab32bced1 (patch)
treebe86e1082e52d94766c7ba1facfd58855e7d86da /Graphics/GraphicsEngine
parentFixed false warning about zero indices for indirect draw/dispatch commands (diff)
downloadDiligentCore-09fae5afcd4c43d7e6d32af94e03f8aab32bced1.tar.gz
DiligentCore-09fae5afcd4c43d7e6d32af94e03f8aab32bced1.zip
Few minor updates
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/include/BufferBase.h2
-rw-r--r--Graphics/GraphicsEngine/interface/Buffer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngine/include/BufferBase.h b/Graphics/GraphicsEngine/include/BufferBase.h
index 40e251f4..c676190c 100644
--- a/Graphics/GraphicsEngine/include/BufferBase.h
+++ b/Graphics/GraphicsEngine/include/BufferBase.h
@@ -268,7 +268,7 @@ void BufferBase<BaseInterface, RenderDeviceImplType, BufferViewImplType, TBuffVi
if (this->m_Desc.Mode == BUFFER_MODE_RAW && this->m_Desc.ElementByteStride == 0)
LOG_ERROR_AND_THROW("To enable formatted views of a raw buffer, element byte must be specified during buffer initialization");
if (ViewElementStride != this->m_Desc.ElementByteStride)
- LOG_ERROR_AND_THROW("Buffer element byte stride (", this->m_Desc.ElementByteStride, ") is not consistent with the size (", ViewElementStride, ") defined by the fromat of the view (", GetBufferFormatString(ViewDesc.Format), ')' );
+ LOG_ERROR_AND_THROW("Buffer element byte stride (", this->m_Desc.ElementByteStride, ") is not consistent with the size (", ViewElementStride, ") defined by the format of the view (", GetBufferFormatString(ViewDesc.Format), ')' );
}
if (this->m_Desc.Mode == BUFFER_MODE_RAW && ViewDesc.Format.ValueType == VT_UNDEFINED)
diff --git a/Graphics/GraphicsEngine/interface/Buffer.h b/Graphics/GraphicsEngine/interface/Buffer.h
index 1f2f8d2d..dad8af5f 100644
--- a/Graphics/GraphicsEngine/interface/Buffer.h
+++ b/Graphics/GraphicsEngine/interface/Buffer.h
@@ -54,7 +54,7 @@ enum BUFFER_MODE : Uint8
/// Raw buffer.
/// In this mode, the buffer is accessed as raw bytes. Formatted views of a raw
- /// buffer can be also created similar to formatted buffer. If formatted views
+ /// buffer can also be created similar to formatted buffer. If formatted views
/// are to be created, the ElementByteStride member of BufferDesc must specify the
/// size of the format.
BUFFER_MODE_RAW,