restructure texture subresources
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
8e04b0d1c9
commit
721854921d
|
@ -385,8 +385,7 @@ typedef struct Refresh_TextureSlice
|
|||
{
|
||||
Refresh_Texture *texture;
|
||||
uint32_t mipLevel;
|
||||
uint32_t baseLayer;
|
||||
uint32_t layerCount;
|
||||
uint32_t layer;
|
||||
uint32_t x;
|
||||
uint32_t y;
|
||||
uint32_t z;
|
||||
|
@ -495,6 +494,7 @@ typedef struct Refresh_TextureCreateInfo
|
|||
uint32_t height;
|
||||
uint32_t depth;
|
||||
uint8_t isCube;
|
||||
uint32_t layerCount;
|
||||
uint32_t levelCount;
|
||||
Refresh_SampleCount sampleCount;
|
||||
Refresh_TextureFormat format;
|
||||
|
@ -580,8 +580,7 @@ typedef struct Refresh_GraphicsPipelineCreateInfo
|
|||
|
||||
typedef struct Refresh_ColorAttachmentInfo
|
||||
{
|
||||
Refresh_Texture *texture; /* We can't use TextureSlice because render passes take a single rectangle. */
|
||||
uint32_t depth;
|
||||
Refresh_Texture *texture;
|
||||
uint32_t layer;
|
||||
uint32_t level;
|
||||
Refresh_Vec4 clearColor; /* Can be ignored by RenderPass */
|
||||
|
@ -592,8 +591,7 @@ typedef struct Refresh_ColorAttachmentInfo
|
|||
|
||||
typedef struct Refresh_DepthStencilAttachmentInfo
|
||||
{
|
||||
Refresh_Texture *texture; /* We can't use TextureSlice because render passes take a single rectangle. */
|
||||
uint32_t depth;
|
||||
Refresh_Texture *texture;
|
||||
uint32_t layer;
|
||||
uint32_t level;
|
||||
Refresh_DepthStencilValue depthStencilClearValue; /* Can be ignored by RenderPass */
|
||||
|
@ -1004,20 +1002,14 @@ REFRESHAPI void Refresh_BindComputeBuffers(
|
|||
|
||||
/* Binds textures for use with the currently bound compute pipeline.
|
||||
*
|
||||
* pTextures: An array of textures to bind.
|
||||
* Length must be equal to the number of buffers
|
||||
* specified by the compute pipeline.
|
||||
*
|
||||
* pLevels: An array of levels to bind,
|
||||
* corresponding to the indices in pTextures.
|
||||
* pTextureSlices: An array of texture slices to bind.
|
||||
* Length must be equal to the number of buffers
|
||||
* specified by the compute pipeline.
|
||||
*/
|
||||
REFRESHAPI void Refresh_BindComputeTextures(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Texture **pTextures,
|
||||
uint32_t **pLevels
|
||||
Refresh_TextureSlice **pTextureSlices
|
||||
);
|
||||
|
||||
/* Pushes compute shader params to the device.
|
||||
|
|
|
@ -675,15 +675,13 @@ void Refresh_BindComputeBuffers(
|
|||
void Refresh_BindComputeTextures(
|
||||
Refresh_Device *device,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Texture **pTextures,
|
||||
uint32_t **pLevels
|
||||
Refresh_TextureSlice **pTextureSlices
|
||||
) {
|
||||
NULL_RETURN(device);
|
||||
device->BindComputeTextures(
|
||||
device->driverData,
|
||||
commandBuffer,
|
||||
pTextures,
|
||||
pLevels
|
||||
pTextureSlices
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -389,8 +389,7 @@ struct Refresh_Device
|
|||
void (*BindComputeTextures)(
|
||||
Refresh_Renderer *driverData,
|
||||
Refresh_CommandBuffer *commandBuffer,
|
||||
Refresh_Texture **pTextures,
|
||||
uint32_t **pLevels
|
||||
Refresh_TextureSlice **pTextureSlices
|
||||
);
|
||||
|
||||
void (*PushComputeShaderUniforms)(
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue