[dxvk] Removed DxvkDevice::createShader method

This commit is contained in:
Philip Rebohle 2017-10-16 20:42:32 +02:00
parent dd20e09708
commit 77f38c33c4
3 changed files with 1 additions and 28 deletions

View File

@ -79,18 +79,6 @@ namespace dxvk {
}
Rc<DxvkShader> DxvkDevice::createShader(
VkShaderStageFlagBits stage,
DxvkSpirvCodeBuffer&& code,
uint32_t numResourceSlots,
const DxvkResourceSlot* resourceSlots) {
return new DxvkShader(stage,
std::move(code),
numResourceSlots,
resourceSlots);
}
Rc<DxvkSwapchain> DxvkDevice::createSwapchain(
const Rc<DxvkSurface>& surface,
const DxvkSwapchainProperties& properties) {

View File

@ -125,21 +125,6 @@ namespace dxvk {
*/
Rc<DxvkSemaphore> createSemaphore();
/**
* \brief Creates a shader module
*
* \param [in] stage Shader stage
* \param [in] code SPIR-V code
* \param [in] numResourceSlots Resource slot count
* \param [in] resourceSlots Resource slot array
* \returns Shader module
*/
Rc<DxvkShader> createShader(
VkShaderStageFlagBits stage,
DxvkSpirvCodeBuffer&& code,
uint32_t numResourceSlots,
const DxvkResourceSlot* resourceSlots);
/**
* \brief Creates a swap chain
*

View File

@ -57,7 +57,7 @@ public:
DxvkSpirvCodeBuffer code(std::ifstream("comp.spv", std::ios::binary));
code.store(std::ofstream("comp.2.spv", std::ios::binary));
m_compShader = m_dxvkDevice->createShader(
m_compShader = new DxvkShader(
VK_SHADER_STAGE_COMPUTE_BIT, std::move(code),
1, &computeBufferSlot);
}