mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
Co-authored-by: Philip Rebohle <philip.rebohle@tu-dortmund.de> Co-authored-by: Robin Kertels <robin.kertels@gmail.com> Co-authored-by: pchome <pchome@users.noreply.github.com> Co-authored-by: Christopher Egert <cme3000@gmail.com> Co-authored-by: Derek Lesho <dereklesho52@Gmail.com> Co-authored-by: Luis Cáceres <lacaceres97@gmail.com> Co-authored-by: Nelson Chen <crazysim@gmail.com> Co-authored-by: Edmondo Tommasina <edmondo.tommasina@gmail.com> Co-authored-by: Riesi <riesi@opentrash.com> Co-authored-by: gbMichelle <gbmichelle.dev@gmail.com>
47 lines
No EOL
1 KiB
C++
47 lines
No EOL
1 KiB
C++
#pragma once
|
|
|
|
#include "d3d9_caps.h"
|
|
|
|
#include "../dxvk/dxvk_buffer.h"
|
|
|
|
#include "../dxso/dxso_isgn.h"
|
|
|
|
#include "../util/util_math.h"
|
|
#include "../util/util_vector.h"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace dxvk {
|
|
|
|
enum class D3D9ConstantType {
|
|
Float,
|
|
Int,
|
|
Bool
|
|
};
|
|
|
|
// We make an assumption later based on the packing of this struct for copying.
|
|
struct D3D9ShaderConstantsVSSoftware {
|
|
Vector4 fConsts[caps::MaxFloatConstantsSoftware];
|
|
Vector4i iConsts[caps::MaxOtherConstantsSoftware];
|
|
uint32_t bConsts[caps::MaxOtherConstantsSoftware / 32];
|
|
};
|
|
|
|
struct D3D9ShaderConstantsVSHardware {
|
|
Vector4 fConsts[caps::MaxFloatConstantsVS];
|
|
Vector4i iConsts[caps::MaxOtherConstants];
|
|
uint32_t bConsts[1];
|
|
};
|
|
|
|
struct D3D9ShaderConstantsPS {
|
|
Vector4 fConsts[caps::MaxFloatConstantsPS];
|
|
Vector4i iConsts[caps::MaxOtherConstants];
|
|
uint32_t bConsts[1];
|
|
};
|
|
|
|
struct D3D9ConstantSets {
|
|
Rc<DxvkBuffer> buffer;
|
|
const DxsoShaderMetaInfo* meta = nullptr;
|
|
bool dirty = true;
|
|
};
|
|
|
|
} |