mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-21 20:52:12 +01:00
54ed8f0bb0
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>
38 lines
802 B
C++
38 lines
802 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "dxso_common.h"
|
|
#include "dxso_decoder.h"
|
|
|
|
namespace dxvk {
|
|
|
|
enum class DxsoBindingType : uint32_t {
|
|
ConstantBuffer,
|
|
ColorImage,
|
|
DepthImage // <-- We use whatever one is bound to determine whether an image should be 'shadow' sampled or not.
|
|
};
|
|
|
|
enum DxsoConstantBuffers : uint32_t {
|
|
VSConstantBuffer = 0,
|
|
VSClipPlanes = 1,
|
|
VSFixedFunction = 2,
|
|
VSVertexBlendData = 3,
|
|
VSCount,
|
|
|
|
PSConstantBuffer = 0,
|
|
PSFixedFunction = 1,
|
|
PSShared = 2,
|
|
PSCount
|
|
};
|
|
|
|
uint32_t computeResourceSlotId(
|
|
DxsoProgramType shaderStage,
|
|
DxsoBindingType bindingType,
|
|
uint32_t bindingIndex);
|
|
|
|
uint32_t getSWVPBufferSlot();
|
|
|
|
uint32_t RegisterLinkerSlot(DxsoSemantic semantic);
|
|
|
|
} |