mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-05 01:24:14 +01:00
[dxvk] Remove null check when setting vertex stride
Move the responsibility to the front-end instead.
This commit is contained in:
parent
8e11630370
commit
520d62903a
@ -241,10 +241,6 @@ namespace dxvk {
|
||||
m_state.vi.vertexBuffers[binding] = buffer;
|
||||
m_flags.set(DxvkContextFlag::GpDirtyVertexBuffers);
|
||||
|
||||
if (unlikely(!buffer.defined())
|
||||
&& unlikely(!m_features.test(DxvkContextFeature::NullDescriptors)))
|
||||
stride = 0;
|
||||
|
||||
if (unlikely(m_state.vi.vertexStrides[binding] != stride)) {
|
||||
m_state.vi.vertexStrides[binding] = stride;
|
||||
m_flags.set(DxvkContextFlag::GpDirtyPipelineState);
|
||||
|
@ -156,6 +156,7 @@ namespace dxvk {
|
||||
/**
|
||||
* \brief Binds vertex buffer
|
||||
*
|
||||
* When binding a null buffer, stride must be 0.
|
||||
* \param [in] binding Vertex buffer binding
|
||||
* \param [in] buffer New vertex buffer
|
||||
* \param [in] stride Stride between vertices
|
||||
@ -164,7 +165,7 @@ namespace dxvk {
|
||||
uint32_t binding,
|
||||
const DxvkBufferSlice& buffer,
|
||||
uint32_t stride);
|
||||
|
||||
|
||||
/**
|
||||
* \brief Binds transform feedback buffer
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user