mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-24 13:54:17 +01:00
28 lines
697 B
C++
28 lines
697 B
C++
#include "d3d9_state.h"
|
|
|
|
#include "d3d9_texture.h"
|
|
|
|
namespace dxvk {
|
|
|
|
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>;
|
|
|
|
} |