Files
lity3d/Engine/Asset/texture.h
T

13 lines
329 B
C

#pragma once
#include <d3d11.h>
typedef struct {
ID3D11Texture2D* texture;
ID3D11ShaderResourceView* srv;
uint32_t width, height;
} Texture;
Texture* texture_load_bmp(ID3D11Device* dev, const char* path);
Texture* texture_create_white(ID3D11Device* dev, uint32_t w, uint32_t h);
void texture_destroy(Texture* tex);