2019-12-16 03:28:01 +00:00
|
|
|
#include "d3d9_state.h"
|
|
|
|
|
|
|
|
#include "d3d9_texture.h"
|
|
|
|
|
|
|
|
namespace dxvk {
|
|
|
|
|
2023-02-11 21:39:05 +00:00
|
|
|
template <template <typename T> typename ItemType>
|
|
|
|
D3D9State<ItemType>::D3D9State() {
|
|
|
|
for (uint32_t i = 0; i < streamFreq.size(); i++)
|
|
|
|
streamFreq[i] = 1;
|
|
|
|
|
|
|
|
for (uint32_t i = 0; i < enabledLightIndices.size(); i++)
|
|
|
|
enabledLightIndices[i] = UINT32_MAX;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
template <template <typename T> typename ItemType>
|
|
|
|
D3D9State<ItemType>::~D3D9State() {
|
|
|
|
if (textures) {
|
|
|
|
for (uint32_t i = 0; i < textures->size(); i++)
|
|
|
|
TextureChangePrivate(textures[i], nullptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
template struct D3D9State<dynamic_item>;
|
|
|
|
template struct D3D9State<static_item>;
|
2019-12-16 03:28:01 +00:00
|
|
|
|
|
|
|
}
|