Skeleton for new draw type and texture fetching.
This commit is contained in:
@@ -101,6 +101,13 @@ void D3D11GraphicsDriver::SetShader(
|
||||
}
|
||||
}
|
||||
|
||||
void D3D11GraphicsDriver::DrawIndexBuffer(
|
||||
XE_GPU_PRIMITIVE_TYPE prim_type,
|
||||
bool index_32bit, uint32_t index_count,
|
||||
uint32_t index_base, uint32_t index_size, uint32_t endianness) {
|
||||
XELOGGPU("D3D11: draw index buffer");
|
||||
}
|
||||
|
||||
void D3D11GraphicsDriver::DrawIndexAuto(
|
||||
XE_GPU_PRIMITIVE_TYPE prim_type,
|
||||
uint32_t index_count) {
|
||||
|
||||
@@ -42,6 +42,10 @@ public:
|
||||
uint32_t address,
|
||||
uint32_t start,
|
||||
uint32_t length);
|
||||
virtual void DrawIndexBuffer(
|
||||
xenos::XE_GPU_PRIMITIVE_TYPE prim_type,
|
||||
bool index_32bit, uint32_t index_count,
|
||||
uint32_t index_base, uint32_t index_size, uint32_t endianness);
|
||||
virtual void DrawIndexAuto(
|
||||
xenos::XE_GPU_PRIMITIVE_TYPE prim_type,
|
||||
uint32_t index_count);
|
||||
|
||||
@@ -1173,6 +1173,13 @@ int TranslateVertexFetch(
|
||||
return 0;
|
||||
}
|
||||
|
||||
int TranslateTextureFetch(
|
||||
xe_gpu_translate_ctx_t& ctx, const instr_fetch_tex_t* tex, int sync) {
|
||||
Output* output = ctx.output;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct {
|
||||
const char *name;
|
||||
} cf_instructions[] = {
|
||||
@@ -1237,6 +1244,10 @@ int D3D11Shader::TranslateExec(xe_gpu_translate_ctx_t& ctx, const instr_cf_exec_
|
||||
}
|
||||
break;
|
||||
case TEX_FETCH:
|
||||
if (TranslateTextureFetch(ctx, &fetch->tex, sync)) {
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
case TEX_GET_BORDER_COLOR_FRAC:
|
||||
case TEX_GET_COMP_TEX_LOD:
|
||||
case TEX_GET_GRADIENTS:
|
||||
|
||||
Reference in New Issue
Block a user