mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-22 07:54:15 +01:00
[dxvk] Removed DxvkDevice::createShader method
This commit is contained in:
parent
dd20e09708
commit
77f38c33c4
@ -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(
|
Rc<DxvkSwapchain> DxvkDevice::createSwapchain(
|
||||||
const Rc<DxvkSurface>& surface,
|
const Rc<DxvkSurface>& surface,
|
||||||
const DxvkSwapchainProperties& properties) {
|
const DxvkSwapchainProperties& properties) {
|
||||||
|
@ -125,21 +125,6 @@ namespace dxvk {
|
|||||||
*/
|
*/
|
||||||
Rc<DxvkSemaphore> createSemaphore();
|
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
|
* \brief Creates a swap chain
|
||||||
*
|
*
|
||||||
|
@ -57,7 +57,7 @@ public:
|
|||||||
DxvkSpirvCodeBuffer code(std::ifstream("comp.spv", std::ios::binary));
|
DxvkSpirvCodeBuffer code(std::ifstream("comp.spv", std::ios::binary));
|
||||||
code.store(std::ofstream("comp.2.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),
|
VK_SHADER_STAGE_COMPUTE_BIT, std::move(code),
|
||||||
1, &computeBufferSlot);
|
1, &computeBufferSlot);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user