mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
38 lines
No EOL
893 B
C++
38 lines
No EOL
893 B
C++
#include "dxbc_gen_vertex.h"
|
|
|
|
namespace dxvk {
|
|
|
|
DxbcVsCodeGen::DxbcVsCodeGen() {
|
|
m_outPerVertex = m_module.newVar(
|
|
m_module.defPointerType(this->defPerVertexBlock(), spv::StorageClassOutput),
|
|
spv::StorageClassOutput);
|
|
}
|
|
|
|
|
|
DxbcVsCodeGen::~DxbcVsCodeGen() {
|
|
|
|
}
|
|
|
|
|
|
void DxbcVsCodeGen::dclInterfaceVar(
|
|
DxbcOperandType regType,
|
|
uint32_t regId,
|
|
uint32_t regDim,
|
|
DxbcComponentMask regMask,
|
|
DxbcSystemValue sv) {
|
|
|
|
}
|
|
|
|
|
|
Rc<DxvkShader> DxbcVsCodeGen::finalize() {
|
|
m_module.addEntryPoint(m_entryPointId,
|
|
spv::ExecutionModelVertex, "main",
|
|
m_entryPointInterfaces.size(),
|
|
m_entryPointInterfaces.data());
|
|
m_module.setDebugName(m_entryPointId, "main");
|
|
|
|
return new DxvkShader(VK_SHADER_STAGE_VERTEX_BIT,
|
|
m_module.compile(), 0, nullptr);
|
|
}
|
|
|
|
} |