mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[spirv] Implement OpImage
This commit is contained in:
parent
c03eaf2de7
commit
a9db65c8c2
@ -2969,6 +2969,19 @@ namespace dxvk {
|
||||
m_code.putWord(offset);
|
||||
return resultId;
|
||||
}
|
||||
|
||||
|
||||
uint32_t SpirvModule::opImage(
|
||||
uint32_t resultType,
|
||||
uint32_t sampledImage) {
|
||||
uint32_t resultId = this->allocateId();
|
||||
|
||||
m_code.putIns(spv::OpImage, 4);
|
||||
m_code.putWord(resultType);
|
||||
m_code.putWord(resultId);
|
||||
m_code.putWord(sampledImage);
|
||||
return resultId;
|
||||
}
|
||||
|
||||
|
||||
uint32_t SpirvModule::opImageRead(
|
||||
|
@ -1020,6 +1020,10 @@ namespace dxvk {
|
||||
uint32_t resultType,
|
||||
uint32_t interpolant,
|
||||
uint32_t offset);
|
||||
|
||||
uint32_t opImage(
|
||||
uint32_t resultType,
|
||||
uint32_t sampledImage);
|
||||
|
||||
uint32_t opImageRead(
|
||||
uint32_t resultType,
|
||||
|
Loading…
x
Reference in New Issue
Block a user